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
Historiography of Colonial Spanish America disdain. An important example is Mexico's conservative politician and intellectual Lucas Alamán. His five-volume "Historia de Mejico" is the country's first history, covering the colonial era up to and including the struggle for independence. Alamán viewed crown rule during the colonial era as ideal, and political independence that after the brief monarchy of Agustín de Iturbide, the Mexican republic was characterized by liberal demagoguery and factionalism. Writing in the mid-nineteenth century, Mexican liberal Vicente Riva Palacio, grandson of insurgent hero Vicente Guerrero, wrote a five-volume history of the colonial era from a liberal viewpoint, During the era of Porfirio Díaz