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
Decolonization of the Americas further wars were fought, such as the Paraguayan War and the War of the Pacific. A related process took place in what is now Mexico, Central America, and parts of North America between 1810 and 1821 with the Mexican War of Independence. Independence was achieved in 1821 by a coalition uniting under Agustín de Iturbide and the Army of the Three Guarantees. Unity was maintained for a short period under the First Mexican Empire, but within a decade the region fought against the United States over the border lands (losing bordering lands of California and Texas). Most of the heat