At least 32 people were killed after a massive 8.1 magnitude earthquake, one of the biggest recorded in Mexico, struck off the country's southern coast late on Thursday, causing cracks in buildings and triggering a small tsunami, authorities said.

The quake was apparently stronger than a devastating 1985 temblor that flattened swaths of Mexico City and killed thousands, but this time, damage to the city was limited.

A number of buildings suffered severe damage in parts of southern Mexico. Some of the worst initial reports came from the town of Juchitan in Oaxaca state, where sections of the town hall, a hotel, a bar and other buildings were reduced to rubble.