Mexican governors of New Mexico were the political chief executives of the province and later territory of Santa Fe de Nuevo México (New Mexico) between 1822, when Mexico gained independence from Spain, and 1846, when the United States occupied the territory following the Mexican–American War. It was succeeded as a territory of the United States, and as the U.S. state of New Mexico.