Mexican War of Independence was the start of Mexico. Spain accepted Mexican independence and next was the Mexican--American War. Texas declared independence from Mexico in 1836. This war caused political turmoil and helped the Caudillo Antonio Lopez Santa Ana consolidate his rule. This war caused many more outcomes later. The Mexican Revolution was conflict to overthrow dictator Porfirio Diaz. The government regained control afterwards.