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:
Miguel Ramos Arizpe
The insurgency for Mexican independence that began with Father Miguel Hidalgo's 1810 uprising and carried on by Father José María Morelos, and Vicente Guerrero during the 1810s was at a military stalemate with royalist forces. With the 1820 Spanish Constitution, the power of the Roman Catholic Church in Mexico was threatened. Royalist military officer Agustín de Iturbide made an alliance with Guerrero, and under the Plan de Iguala declaring Mexico's independence, which was achieved in 1821. The formation of the new Mexican state initially involved a constituent congress, but Iturbide seized power and declared himself Agustín I, emperor of Mexico. Ramos Arizpe returned to Mexico in 1822, when opposition to Iturbide was coalescing. He was "instrumental in mobilizing the provinces and drafting the Plan of Casa Mata," which called for the overthrow of Iturbide.