Mexicans of European descent officially in force through the rest of the colonial period. Criollo resentment of the privileges afforded to the "Peninsulares" was the main reason behind the Mexican War of Independence. When the war ended in 1821, the new Mexican government expelled the peninsulares (approximately 10,000 – 20,000 people) in the 1820s and 1830s which at a degree, kept the European ethnicity from growing as a percentage; this expulsion however, did not lead to any permanent ban on European immigrants, even from Spain. Independence did not do away with economic and social privilege based on race as the Criollos took over those
Mexican–American War could not be released from its obligations. The US was released from all obligations of Article XI five years later by Article II of the Gadsden Purchase of 1853. The 1848 Treaty of Guadalupe Hidalgo ended the war and enforced the Mexican Cession of the northern territories of Alta California and Santa Fe de Nuevo México to the United States. Mexico acknowledged the loss of what became the State of Texas and accepted the Rio Grande as its northern border with the U.S. The losses amounted to one-third of its original territory from its 1821 independence. Before the secession of