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
History of Peru since most of the presidents that ruled the country were from the social elite. During Augusto B. Leguía's periods in government [1908–1912 and 1919–1930, the latter known as the "Oncenio" (the "Eleventh")], the entrance of American capital became general and the bourgeoisie was favored. This policy, along with increased dependence on foreign investment, focused opposition from the most progressive sectors of Peruvian society against the landowner oligarchy. There was a final peace treaty in 1929, signed between Peru and Chile and called the Treaty of Lima by which Tacna returned to Peru and Peru yielded permanently the formerly rich provinces