When Mexico achieved independence from Spain in 1821, it inherited the vast New Mexico Territory—a region far larger than today's state of New Mexico.
The inherited territory encompassed present-day:
This territory had been administered as Santa Fe de Nuevo México under Spanish colonial rule, part of the Viceroyalty of New Spain. The 1821 Treaty of Córdoba and subsequent Mexican Empire/Republic succession transferred sovereignty over this expansive northern frontier region.
Mexico's control over this territory lasted until the Mexican-American War (1846-1848), when the Treaty of Guadalupe Hidalgo ceded most of it to the United States. The Gadsden Purchase (1854) transferred the remaining southern portions of present-day Arizona and New Mexico.
This inheritance shaped the geopolitical landscape of the American Southwest and remains central to the region's multicultural heritage.