The Spanish conquest of the Maya was a protracted conflict during the Spanish colonisation of the Americas, in which the Spanish conquistadores and their allies gradually incorporated the territory of the Late Postclassic Maya states and polities into the colonial Viceroyalty of New Spain. The Maya occupied a territory that is now incorporated into the modern countries of Mexico, Guatemala, Belize, Honduras and El Salvador; the conquest began in the early 16th century and is generally considered to have ended in 1697.
The first contact between the Maya and European explorers came in the early 16th century when a Spanish ship sailing from Panama to Santo Domingo was wrecked on the east coast of the Yucatán Peninsula in 1511. Several Spanish expeditions followed, making landfall on various parts of the Yucatán coast. The Spanish conquest of the Maya was a prolonged affair; the Maya kingdoms resisted integration into the Spanish Empire with such tenacity that their defeat took almost two centuries. The Itza Maya and other lowland groups in the Petén Basin were first contacted by Hernán Cortés in 1525, but remained independent and hostile to the encroaching Spanish until 1697, when a concerted Spanish assault finally defeated the last independent Maya kingdom.