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:
Latin America–United States relations
Texas, which had been settled by colonies of Americans, fought a successful war for independence from Mexico in 1836. Mexico refused to recognize the independence and warned that annexation to the United States meant war. Annexation came in 1845 and the Mexican–American War began in 1846. The American military was easily triumphant. The result was the Mexican Cession of Santa Fe de Nuevo México and Alta California. About 60,000 Mexicans remained in the territories and became US citizens. France took advantage of the American Civil War (1861–65), using its army to take over Mexico. Due to defeats in Europe, France pulled out troops, leaving the Imperialists and Maximilian I of Mexico to face defeat from the Benito Juarez-led Republicans (backed by the US).