There were no immediate reports of major damage in Mexico City (Representational)

A magnitude 6.6 earthquake struck Mexico's southern state of Chiapas on Friday, the U.S. Geological Survey (USGS) said, with the quake being felt as far away as El Salvador.

An official with emergency services in Chiapas said that he felt the quake but that he did not see any immediate damage. A Reuters witness said the quake was felt in San Salvador.

The epicenter of the quake hit at a depth of 42 miles (68 km) near the Pacific coast and Mexico's border with Guatemala, according to the USGS.

There were no immediate reports of major damage in Mexico City, though some people evacuated office buildings.