Gran Colombia–Peru War was the kernel of Bolívar's grander scheme to unite the former Spanish colonies in Central and South America. Prior to becoming the titular head of Gran Colombia, Bolívar had been, briefly, the president of the newly independent state of Bolivia, his namesake. Bolivia had formerly been a part of the Viceroyalty of the "Rio de La Plata", known as Upper Peru, and, once Bolívar relinquished the presidency of Bolivia to his revolutionary compatriot, Antonio José de Sucre Alcalá, in 1826, the Peruvians saw an opportunity. Early in 1828, Peru launched a campaign against Bolivia to reclaim its former territory and
History of Peru achieved only in the early 1900s. In 1894, Nicolás de Piérola, after allying his party with the Civil Party of Peru to organize guerrilla fighters to occupy Lima, ousted Andrés Avelino Cáceres and once again became president of Peru in 1895. After a brief period in which the military once again controlled the country, civilian rule was permanently established with Pierola's election in 1895. His second term was successfully completed in 1899 and was marked by his reconstruction of a devastated Peru by initiating fiscal, military, religious, and civil reforms. Until the 1920s, this period was called the "Aristocratic Republic",