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 City
The Grito de Dolores ("Cry of Dolores"), also known as El Grito de la Independencia ("Cry of Independence"), marked the beginning of the Mexican War of Independence. The Battle of Guanajuato, the first major engagement of the insurgency, occurred four days later. After a decade of war, Mexico's independence from Spain was effectively declared in the Declaration of Independence of the Mexican Empire on September 27, 1821. Unrest followed for the next several decades, as different factions fought for control of Mexico.