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
In 1813 the Congress of Chilpancingo was convened and, on November 6, signed the "Solemn Act of the Declaration of Independence of Northern America". Morelos was captured and executed on December 22, 1815.
In subsequent years, the insurgency was near collapse, but in 1820 Viceroy Juan Ruiz de Apodaca sent an army under the criollo general Agustín de Iturbide against the troops of Vicente Guerrero. Instead, Iturbide approached Guerrero to join forces, and on August 24, 1821 representatives of the Spanish Crown and Iturbide signed the "Treaty of Córdoba" and the "Declaration of Independence of the Mexican Empire", which recognized the independence of Mexico under the terms of the "Plan of Iguala".