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:
Treaty of Córdoba
On September 27, 1821, the Army of the Three Guarantees entered triumphantly into Mexico City and on the following day, the Declaration of Independence of the Mexican Empire was widely known. The Spanish Cortes refused to accept the validity of the Plan of Iguala or the Treaty of Córdoba. Spain did not recognize Mexico's independence until December 1836. Therefore, the Mexican Congress elected a Mexican monarch the following year. Iturbide was proclaimed emperor of Mexico on May 18, 1822. The monarchy lasted three years, and after the republican revolution of Casa Mata, the Congress no longer considered the Plan of Iguala or Treaty of Córdoba in effect.