Chile–Peru relations forces as the Confederate forces began to split on opinions and the commanding skills of Manuel Bulnes Prieto proved superior to Santa Cruz, who was killed during the battle. Following this, Peru was once again unified, and Agustin Gamarra attempted to lead an invasion to Bolivia. The attack utterly failed, Gamarra was killed, and Peru and Bolivia entered into another war. Bolivia would once again invade Peru but, without Gamarra, Ramon Castilla became the most prominent military figure of Peru and troops were soon dispatched for the defensive. The success in this defense resulted in Peruvian victories that returned both
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