Bolivia–Spain relations and Antonio José de Sucre entered Peru and defeated the Spanish forces in the country. Soon afterwards, troops led by Antonio José de Sucre entered Upper Peru and fought against royalist forces. By 1825, Upper Peru was free from Spanish authority. Originally, Bolívar wanted Upper Peru to join either Peru or Argentina, however, the people of Upper Peru convinced Bolívar and Sucre to give autonomy to the territory and on 6 August 1825, an Upper Peruvian congress declared the country independent and renamed the territory "Bolivia" in honor of Simón Bolívar and named its capital "Sucre" in honor of Antonio
Protectorate of Peru this, Peru remained strongly royalist and participated in the political reforms implemented by the Cádiz Cortes (1810–1814), despite Abascal's resistance. Peru was represented at the first session of the Cortes by seven deputies and local cabildos (representative bodies) became elected. Therefore, Peru became the second to last redoubt of the Spanish Monarchy in South America, after Upper Peru. Peru eventually succumbed to patriot armies after the decisive continental campaigns of José de San Martín (1820–1823) and Simón Bolívar (1823–1825). Some of the early Spanish conquistadors that explored Peru made the first attempts for independence from the Spanish crown. They tried