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:
First Mexican Republic
The Spanish overseas possession of the Viceroyalty of New Spain lasted for 300 years, from 1521 with the fall of the Aztec capital of Tenochtitlan and the foundation of Mexico City until the collapse of the viceroyalty in following years of civil war and military stalemate. An insurgency for independence from Spain lasted from the initial 1810 mass revolt, led by secular cleric Miguel Hidalgo and continued under another secular cleric, José María Morelos, and carried on the hot country of Mexico's south by Vicente Guerrero. Augustin Iturbide, a royalist military officer born in New Spain of Spanish parents, made a strategic alliance with Guerrero under the Plan of Iguala, in which the former foes fought in tandem to oust Spanish rule. The plan proclaimed Mexico a nation-state; Roman Catholicism as the sole religion; the equality of Spaniards and American-born Spaniards and abolished legal racial designations, and was to be a constitutional monarchy. On September 27, 1821, Mexico obtained its sovereignty under the Treaty of Córdoba, which recognized New Spain as an independent empire, which took the name the Mexican Empire.