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:
Mexico
Agustín de Iturbide became constitutional emperor of the First Mexican Empire in 1822. A revolt against him in 1823 established the United Mexican States. In 1824, a Republican Constitution was drafted and Guadalupe Victoria became the first president of the newly born country. Central America, including Chiapas, left the union. In 1829 president Guerrero abolished slavery. The first decades of the post-independence period were marked by economic instability, which led to the Pastry War in 1836. There was constant strife between Liberals, supporters of a federal form of government, and Conservatives, who proposed a hierarchical form of government.