TV footage showed at least one landslide but there were no immediate reports of major damage or injuries. The bureau said the quake happened at one minute after 1 p.m. local time (0500 GMT), with its epicenter located just over 10 kilometers (6 miles) northwest of the eastern coastal city of Hualien. The depth was 10 kilometers (6 miles), according to the United States Geological Survey.

The quake shook buildings in the capital, Taipei, which is about 115 kilometers (71 miles) away.

Footage run by Taiwanese television stations showed overturned furniture in homes and offices and at least one landslide along the mountainous and lightly populated east coast.

Taiwan is on the string of seismic faults around the Pacific Ocean known as the "Rim of Fire" and is frequently rocked by tremors, including a 1999 quake that killed more than 2,300 people.

An earthquake in February 2018 in Hualien killed 17 people when four buildings partially collapsed. That quake hit two years to the day after an apartment building in the southwestern city of Tainan collapsed in an earthquake, killing 115 people.