A 7.4-magnitude earthquake, followed by several strong aftershocks, struck off the east coast of Taiwan on Wednesday morning, killing nine people and injuring at least 963, according to Taiwan’s fire department.

The earthquake, which damaged buildings and caused landslides, was the largest to hit Taiwan in 25 years and was also felt in parts of China.

Meanwhile, 50 hotel workers were missing en route to a national park, authorities said, as rescuers used ladders to bring others to safety.

Television broadcast images of buildings tilted at precarious angles in the mountainous, sparsely populated eastern county of Hualien, near the epicentre of the 7.2 magnitude quake, which struck just offshore at about 8 a. m. (0000GMT).

The quake hit at a depth of 15.5 km (9.6 miles), just as people were headed for work and school, setting off a tsunami warning for southern Japan and the Philippines that was later lifted.

Video showed rescuers using ladders to help trapped people out of windows, while elsewhere there were massive landslides. Strong tremors in Taipei forced the subway system to close briefly, although most lines resumed service.

Fire authorities said they had already evacuated some 70 people trapped in tunnels near Hualien city, including two Germans.

But they had lost contact with 50 workers aboard four minibuses heading to a hotel in a national park, Taroko Gorge, they said, and rescuers were looking for them. Another 80 people are trapped in a mining area, though it was not immediately clear if they were inside a mine.

The government put the number of injured at 946.

“At present the most important thing, the top priority, is to rescue people,” said President-elect Lai Ching-te, speaking outside one of the collapsed buildings in Hualien.

The rail link to the area was expected to re-open on Thursday, Lai, who is set to take office next month, told reporters.

Taiwan President-elect Lai Ching-te inspects the damage following earthquake, in Hualien

Taiwan’s air force said six F-16 fighter jets had been slightly damaged at a major base in the city from which jets are often scrambled to see off incursions by China’s air force, but the aircraft are expected to return to service very soon.

In Japan, the weather agency put the quake’s magnitude at 7.7, saying several small tsunami waves reached parts of the southern prefecture of Okinawa, while downgrading its tsunami warning to an advisory.

In the Philippines, seismology officials warned coastal residents in several provinces to move to higher ground.

Chinese state media said the quake was felt in the southeastern province of Fujian, while a Reuters witness said it was also felt in the commercial hub of Shanghai.

Aftershocks could still be felt in Taipei, with more than 50 recorded, weather officials said.