The territory of Upper Peru was constituted in an independent state with the name of Bolivia, in homage to the Liberator, of the State "(1825) until 1828 when a series of disturbances made him resign. Later, in his honor, the name of the capital, Chuquisaca, by Sucre. In 1829 Andrés de Santa Cruz in 1839 due to the war that unleashed Chile and Argentina José Miguel de Velasco, president on four different occasions, in the span of 20 years, and Joseph Boliviana (1841-47) Agustín Gamarra (Peruvian president) died in this battle Melgarejo (1864-71), an arbitrary and ignorant ruler, caused the loss of large territories at the hands of Brazil and Chile.The War of the Pacific (1879-83) the "liberal period" (1899-1920), in which several democratically elected governments succeeded.