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
Afro-Mexicans in the Mexican War of Independence majority of them still is linked to agricultural economic activities. The war of independence was precipitated by events in Europe, specifically a failed coup against the viceroy Joseph Bonaparte. This encouraged small groups of rebels to take up arms against colonial rule. In September 1810, peasants and indigenous inhabitants of Dolores (Guanajuato) were called to action by the secular Catholic priest Miguel Hidalgo y Costilla, former rector of the Colegio de San Nicolás Obispo. People of color were able to see that their independence was worth putting up a fight for it. However, Hidalgo was defeated. José Maria Morelos y