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:
Military history of Mexico
In 1821 Agustín de Iturbide, a former Spanish general who switched sides to fight for Mexican independence, proclaimed himself emperor – officially as a temporary measure until a member of European royalty could be persuaded to become monarch of Mexico (see First Mexican Empire for more information). A revolt against Iturbide in 1823 established the United Mexican States. In 1824 Guadalupe Victoria became the first president of the new country; his given name was actually Félix Fernández but he chose his new name for symbolic significance: Guadalupe to give thanks for the protection of Our Lady of Guadalupe, and "Victoria", which means Victory.