Taiwan authorities say there were no immediate reports of any damage after the magnitude 6.5 earthquake.

Taiwan lies near the junction of two tectonic plates and is prone to earthquakes.
Taiwan lies near the junction of two tectonic plates and is prone to earthquakes. (Reuters)

Buildings shook in Taipei as an earthquake of magnitude 6.5 has struck northeastern Taiwan.

There were no reports of damage.

It had a depth of 66.8 km (41.5 miles), and could be felt across the northern, eastern and western parts of Taiwan, with the epicentre in Yilan county, the weather bureau said on Sunday.

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, while the railway administration said it was carrying out track inspections.

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.

Taiwan lies near the junction of two tectonic plates and is prone to earthquakes.

More than 100 people were killed in a quake in southern Taiwan in 2016, while a 7.3 magnitude quake killed more than 2,000 people in 1999.

READ MORE: Casualties as earthquake strikes Indonesia's Bali

READ MORE: Magnitude 6.1 quake shakes Tokyo, several injuries reported

Source: Reuters