The mainland part of New Spain won independence from Spain in 1821 and New Mexico became part of the new nation of Mexico.
In January 1912, New Mexico became an American state, and Anglophones eventually became the majority population.