Mexico Europeans. In 1521, the Spanish Empire conquered and colonized the territory from its politically powerful base in Mexico-Tenochtitlan (part of Mexico City), which was administered as the viceroyalty of New Spain. Three centuries later, the territory became a nation state following its recognition in 1821 after the colony's Mexican War of Independence. The post-independence period was tumultuous, characterized by economic inequality and many contrasting political changes. The Mexican–American War (1846–1848) led to a territorial cession of the extant northern territories to the United States. The Pastry War, the Franco-Mexican War, a civil war, two empires, and the Porfiriato occurred in
Afro-Mexicans in the Mexican War of Independence majority of them still is linked to agricultural economic activities. The war of independence was precipitated by events in Europe, specifically a failed coup against the viceroy Joseph Bonaparte. This encouraged small groups of rebels to take up arms against colonial rule. In September 1810, peasants and indigenous inhabitants of Dolores (Guanajuato) were called to action by the secular Catholic priest Miguel Hidalgo y Costilla, former rector of the Colegio de San Nicolás Obispo. People of color were able to see that their independence was worth putting up a fight for it. However, Hidalgo was defeated. José Maria Morelos y