 Portugal regained the Misiones Orientales in the Treaty of Badajoz (1801) while the Napoleonic Wars and the loss of much of the Spanish navy at the Battle of Trafalgar in 1805 severed links between the central government and their overseas possessions.Between 1809-1829, the Spanish American wars resulted in the independence of Spanish colonies in the Americas, the Viceroyalty of Río de la Plata being dissolved during the 1810-1818 Argentine War of Independence.The territories in Africa gained by the Treaty of El Pardo became the colony of Spanish Guinea.