First Mexican Civil War
Second Mexican Civil War
But the fighting in Mexico was not over. There was virtually no government. Most states were managed as private feuds by their governors, and there were several nation-wide guerrilla movements, and two fractions claiming to be the official government of Mexico.
One of these fractions asked support by the USA, and in 1868, the USA landed a small army in Veracruz.
From Veracruz, the USA managed to control and pacify most Mexico. US troops reminded in Mexico for five years, fighting local resistance to the supported governments.
Finally in 1873, the USA retired their armies from most of Mexico, but kept them in Campeche, Yucatan and Chiapas.
From 1860 to 1873, Mexico had lost Texas, who went independent, Deseret, who went independent, Sonora and Arizona, who went independent, and Baja California, partitioned between Sonora and California, and Campeche, Chiapas and Yucatan who was kept by the USA.
In 1875, the US supported government of Mexico issued a constitution for a federal republic with strong central control: La República Mexicana. State militias were forbiden.