A strong earthquake shook several small islands off Japan's southern coast on Sunday, rattling buildings over 160 kilometres away in Taiwan and causing officials to temporarily issue a tsunami warning.
There were no immediate reports of damage or casualties.
Japan's Meteorological Agency said the earthquake hit at 3:10 pm local time and registered magnitude 6.6. The US Geological Survey measured it at 6.4.
Japanese officials immediately issued a warning for a tsunami about 1.6 feet high, but removed the warning about an hour later.
The quake was also felt in Taiwan, about 250 kilometres to the east, where residents in Taipei could feel buildings shake.
The quake hit 110 kilometres off the southern coast of Miyakojima island, in southern Japan, at a depth of 10 kilometres, the Meteorological Agency said.
The small island is about 1,800 kilometres southwest of Tokyo.
Japan is one of the world's most earthquake-prone countries. In 1995, a magnitude-7.2 quake in the western port city of Kobe killed 6,400 people.