A magnitude-6.0 earthquake has rattled southern and central areas of Mexic, the US Geological Survey (USGS) reported, but there were no initial reports of damage or injuries.
Its epicentre was located 13km northwest of San Marcos, near the Pacific Coast resort of Acapulco, at a depth of 20km.
The quake shook buildings in the capital, Mexico City, some 400km away. A magnitude-5.3 aftershock struck some 25 minutes later.
Mexico City Mayor Miguel Angel Mancera said no damage or injuries were reported after authorities surveyed the megalopolis.
The capital can sense distant earthquake as it lies on muddy soil from drained lakes. An 8.1-magnitude earthquake in 1985 left 3700 people dead in the city, according to official figures.
Mexico is one of the world's most seismically active regions, according to the USGS, with the movement of three large tectonic plates causing frequent earthquakes and volcanic eruptions.