The quake was registered at a depth of 15 miles, according to the US Geological Survey.
Its epicenter was in the western state of Guerrero, near the seaside resort of Acapulco.
There are no reports of casualties or significant damage, but frightened residents across the Mexican capital fled their homes as the tremor began.
The earthquake was felt in several southern and western Mexican states at 09:27 local time.
Windows were broken and trees fell in Chilpancingo, capital of Guerrero.
In Acapulco, where many tourists were enjoying the Easter holiday, there were scenes of panic.
Mexico lies on top of three continental plates and is regularly shaken by tremors.
uaICm6H-UjsMisleading allegations, rumours and outright lies about voting and fraud are flooding online spaces in…
At least 158 people have died in Spain's worst flooding disaster in generations. On October…
Google has been fined two undecillion (a two followed by 36 zeroes) roubles by a…
Embarking on a home remodel is an exciting journey, promising enhanced comfort, increased property value,…
The US presidential candidates continued to campaign across key swing states on October 20. Footage…
Elon Musk has said he will give away $1 million a day to a registered…