A powerful 8.2-magnitude earthquake rocked Mexico late Thursday, killing at least 20 people and triggering a tsunami alert in what the president called the quake-prone country's biggest one in a century.
The quake hit offshore in the Pacific at 0449 GMT, about 100km from the coastal town of Tonala, in far southern Chiapas state, Mexico's seismologic service said.
"It was a major earthquake in scale and magnitude, the strongest in the past 100 years," said President Enrique Pena Nieto in an address from the National Disaster Prevention Centre's headquarters, where he was supervising the emergency response.
The US Geological Survey put the magnitude slightly lower, at 8.1. That is the same as a devastating 1985 earthquake that killed more than 10,000 people in Mexico City, the country's most destructive ever.
The quake shook a large swath of the country and was felt as far north as Mexico City, some 800 km from the epicentre, where people ran from their homes as buildings trembled and swayed.
'The car was wobbling'
Pena Nieto said 50 million of Mexico's 120 million people felt the quake.
It was also felt in much of Guatemala, which borders Chiapas.
Mexican officials ordered schools to remain closed Friday in 11 states, including Mexico City, so officials could inspect for structural damage.
In the capital, people ran out of buildings, many in their pajamas, after hearing earthquake warning sirens go off just before midnight (0500 GMT Friday).
"I was driving when the ground started to shake. The car was wobbling," said Cristian Rodriguez, a 28-year-old Uber driver in Mexico City.
The quake struck at a depth of 69.7km, according to the USGS.
Initially, authorities issued a tsunami alert for a huge stretch of coastline starting in central Mexico and spanning Central America all the way down to Ecuador.
But the alert was lifted several hours after the quake.
The Pacific Tsunami Warning Centre had originally said a tsunami of more than three meters was possible.
In the end, the quake caused rough seas but no tsunami, officials said.
Since the 1985 earthquake, Mexican authorities have instituted a stricter building code and developed an alert system using sensors placed on the coasts.
Mexico sits atop five tectonic plates, whose movement makes it one of the most seismically active countries in the world.