Buildings shook in Taipei on Sunday as an earthquake of magnitude 6.5 struck northeastern Taiwan, but there were no reports of damage.
It had a depth of 66.8 km and could be felt across the northern and eastern parts of Taiwan, with the epicentre in Yilan county, the weather bureau added.
The Taipei metro was briefly closed for checks, but re-opened shortly afterwards. The state-run power operator said the grid was operating as normal.
Taiwan Semiconductor Manufacturing Co Ltd (TSMC) , the world's largest contract chipmaker, said it had evacuated some workers.
"Personnel at certain TSMC fabs in north Taiwan evacuated during the earthquake as per company procedure, and all safety systems functioned normally," it said in a brief statement.


Philippine VP Duterte takes the stand in 'politicised' impeachment trial
India's parliament approves landmark bill to expand legislatures
US senators grill Nvidia CEO over affair with alleged Chinese spy, national security risks
Mexico detains 13 public servants, probes links to organised crime
Nepal declares dead thousands missing since August floods
