Mexican War of Independence
The Mexican republic had gained independence from Spain during the Mexican War of Independence (1810-1821).