Indigenous peoples of Mexico
When Mexico gained independence in 1821, the casta system was eliminated as a legal structure, but racial divides remained. 
White Mexican argued about what the solution was to the "Indian Problem", that is indigenous who continued to live in communities and were not integrated politically or socially as citizens of the new republic. The Mexican constitution of 1824 has several articles pertaining to indigenous peoples. The second article of the constitution of Mexico recognizes and enforces the right of indigenous peoples and communities to self-determination and therefore their autonomy to:
Mexican War of Independence
In the early 19th century, Napoleon's occupation of Spain led to an outbreak of numerous revolts against colonial government across Spanish America. After the abortive Conspiracy of the Machetes in 1799, a massive revolt in the Bajío region was led by secular cleric Miguel Hidalgo y Costilla. His Grito de Dolores was the first stage of the insurgency for Mexican independence. Before 1810, there was no significant support for independence. Once the Hidalgo revolt was underway, it received major support only in the Bajío and parts of Jalisco.