Taiwan is on the string of seismic faults around the Pacific Ocean known as the Ring 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 south-western city of Tainan collapsed in an earthquake, killing 115 people.