19th century new national borders. The Concert of Europe attempted to preserve this settlement was established to preserve these borders, with limited impact. Most countries in Central America and South America obtained independence from colonial overlords during the 19th century. In 1804, Haiti gained independence from France. In Mexico, the Mexican War of Independence was a decade-long conflict that ended in Mexican independence in 1821. Due to the Napoleonic Wars, the royal family of Portugal relocated to Brazil from 1808-1821, leading to Brazil having a separate monarchy from Portugal. The Federal Republic of Central America gained independence from Spain in 1821 and
Antonio López de Santa Anna enough to send him to school. In June 1810, the 16-year-old Santa Anna joined the Fijo de Veracruz infantry regiment as a cadet against the wishes of his parents, who wanted him to pursue a career in commerce. In September 1810, secular cleric Miguel Hidalgo y Costilla rebelled against Spanish rule, sparking a spontaneous mass movement in Mexico's rich agricultural area, the Bajío. The Mexican War of Independence was to last until 1821, and Santa Anna, like most creole military men, fought for the crown against the mixed-raced insurgents for independence. Santa Anna's commanding officer was José Joaquín de Arredondo,