Peru was heavily indebted, and political in-fighting was again on the rise. Peru embarked on a railroad-building program that helped but also bankrupted the country. In 1879, Peru entered the War of the Pacific which lasted until 1884. Bolivia invoked its alliance with Peru against Chile. The Peruvian Government tried to mediate the dispute by sending a diplomatic team to negotiate with the Chilean government, but the committee concluded that war was inevitable. Chile declared war on 5 April 1879. Almost five years of war ended with the loss of the department of Tarapacá and the provinces of Tacna and Arica,
Campaign of Sucre in Upper Peru to invade Upper Peru to Potosí. Royalist general Pedro Antonio Olañeta, hearing of the defection half of his forces under Col Medinaceli, and passed to the patriots, Olañeta attack them on April 1, 1825. Olaneta wound in combat fell to the ground. His soldiers surrender. Olaneta died the following day, April 2. That same day Col.Medinaceli referred the part of the battle to Marshal Sucre, who ended the military campaign. Campaign of Sucre in Upper Peru Campaign of Sucre in Upper Peru was a set of military operations conducted by the Liberator United Army of Peru to dislodge the Spanish