According to United States Geological Survey (USGS), the quake had a magnitude of 7.4 and put the epicentre at 15 miles (25 km) east of Ometepec, in Guerrero state.
Witnesses in the capital, Mexico City, said the tremor sent office workers rushing out onto the streets.
An estimated of 800 houses were damaged in Guerrero and Oaxaca states.
The director of the country’s seismological service, Carlos Valdes Gonzalez, said that there had already been some six aftershocks and further ones could be expected in the next 24 hours.
Carlos Valdes Gonzalez said one of the aftershocks had already registered a magnitude of 5.3.
A pedestrian bridge reportedly collapsed and crushed a microbus in Mexico City, but there were still no reports of deaths.
Office workers and residents were sent running into the streets in wealthy districts and poor neighborhoods alike.
Samantha Rodriguez, a 37-year old environmental consultant, was evacuated from the 11th floor of an office block.
“I thought it was going to pass rapidly but the walls began to thunder and we decided to get out,” she said.
Sirens could be heard across the city, and police helicopters are crisscrossing the skies.
“I swear I never felt one so strong, I thought the building was going to collapse,” said Sebastian Herrera, 42, a businessman from a neighborhood hit hard in Mexico’s devastating 1985 earthquake, which killed thousands.
Mobile phone networks have been affected, our correspondent says, and people have had trouble contacting their loved ones.
Gabino Cue, the governor of Oaxaca state, next to Guerrero state, said via Twitter that the quake had caused cracks in school buildings and damaged roofs in one part of the state.
The USGS said the epicentre was 11 miles (18 km) underground.
The US president’s daughter, 13-year-old Malia Obama, was on a school trip in Oaxaca, south-western Mexico. A White House official said she was safe and had never been in danger.
ITvMR381jZoImage source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…