Viceroyalty of Peru arrived in Lima with Antonio José de Sucre to plan the offensive. In February 1824 the royalists briefly regained control of Lima. Olañeta's Rebellion started by surprise and the entire royalist army of Upper Peru (today's Bolivia) revolted, led by Pedro Antonio Olañeta (royalist) against La Serna, the viceroy of Peru (a liberal). This broke the royal army and started a civil war in Upper Peru. Having regrouped in Trujillo, Bolívar in June led his rebel forces south to confront the Spanish under Field Marshal José de Canterac. The two armies met on the plains of Junín on August 6,
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