The quake struck 32 kilometres off the northeastern coastal city of Yilan and was felt throughout the island.
There was no major damage reported but there were isolated cases of damage to gas and water lines.
Authorities are now warning of potential aftershocks of magnitude 5.5 to 6.