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-UjsThe US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…