Updated

A magnitude-5.4 earthquake shook southern Mexico early Friday morning, causing no reported damage but swaying tall buildings in the capital of Mexico City about 230 miles away.

The U.S. Geological Survey says the quake's epicenter was located about 6 miles off Mexico's Pacific Coast near the town of Pinotepa Nacional in southern Oaxaca state at 5:00 a.m. local time.

Mexico City Mayor Marcelo Ebrard said via Twitter that everything was operating normally in the metropolis of more than 21 million people.

Mexico has been hit by several quakes in the last three weeks, rattling the nerves of weary residents.

Three tectonic plates come together off Mexico's Pacific coast, and scientists say the country is hit with hundreds of small-magnitude earthquakes every year.