The tremor was felt in the capital, Mexico City, causing the partial collapse of at least one building, television pictures showed.
Thousands of people were out on the streets as a precaution, local media reported.
Earlier this month, a powerful 8.1 magnitude killed at least 90 people in the country.
The quake hit the state of Puebla at a depth of 32 miles (51 km).