Independencia de México
The Spanish-period ended in 1821 with the signing of the Treaty of Córdoba, which officially ended the Mexican War of Independence.