Depending on your nationality, you might need a visa to enter Mexico.
Detailed information about visas can be found here.