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
Peru misunderstandings due to the lack of a common language. The Spanish Crown gave the name legal status with the 1529 "Capitulación de Toledo", which designated the newly encountered Inca Empire as the province of Peru. Under Spanish rule, the country adopted the denomination Viceroyalty of Peru, which became Republic of Peru after independence. The earliest evidences of human presence in Peruvian territory have been dated to approximately 9,000 BC. Andean societies were based on agriculture, using techniques such as irrigation and terracing; camelid husbandry and fishing were also important. Organization relied on reciprocity and redistribution because these societies had no