A moderately strong earthquake shook Mexico's Pacific coast resort of Acapulco on Wednesday, sending people fleeing into the streets. No damages or injuries were reported.

The magnitude-5.8 quake occurred at 8:24 a.m. local time (1324 GMT) and was centered about 85 miles (138 kilometers) east of Acapulco, the U.S. Geological Survey reported on its website.

The quake occurred at a depth of nearly six miles (10 kilometers).

"We're surveying the areas where we know there are adobe houses that could collapse but so far we haven't received any reports of damages," said Roel Ayala, a civil protection spokesman for Guerrero state, where Acapulco is located.

The quake also swayed buildings in Mexico City, prompting some to evacuate.

Police surveying the city by helicopter and land found no damages or injuries, said Mexico City Public Safety Department Secretary Elias Miguel Moreno.