The Peru-Bolivia Confederation. In 1836 the Grand Marshal of Ayacucho's successor in Bolivia, Andres de Santa Cruz, achieved what Bolivar had only dreamed: a union of Andean states. Santa Cruz - half-Quechua, born beside Lake Titicaca, president of Bolivia and the ablest soldier-statesman of the post-independence generation - had already reorganized Bolivia's finances, army and law. In 1835 he marched into a Peru torn by civil war, won the battles, and joined the two countries, and then the two Perus themselves, into a single Peru-Bolivian Confederation, with himself as Supreme Protector and Bolivian-directed power from Lima to La Paz.
For three years the Confederation worked. Santa Cruz gave it order, free trade between its states, and the busiest diplomacy in the Pacific - and thereby made mortal enemies. The Chilean minister Diego Portales saw in the united Andes the end of Chile's commercial dominance of the South Pacific: Valparaiso could not compete with a protected Callao. Chile declared war in 1836; the Argentine strongman Juan Manuel de Rosas joined the coalition from the south; and Peruvian exiles - above all Agustin Gamarra, the defeated caudillo - joined the invaders.
Santa Cruz beat the first Chilean expedition and took its surrender, magnanimously letting it go home. The second, better prepared, met him at Yungay in the Peruvian highlands on 20 January 1839, and there the Confederation died: the Protector's army was destroyed, Santa Cruz fled to exile, and Peru and Bolivia fell back into their separate, quarrelsome orbits. Portales, the war's author, had already been murdered by his own mutinous troops; Gamarra, restored in Peru, invaded Bolivia and was killed at Ingavi in 1841.
Yungay closed the last serious attempt to unite the Andean republics, and it fixed the politics of the South Pacific: Chile's supremacy of the coast, confirmed forty years later in the War of the Pacific; Peru and Bolivia weakened toward their nineteenth-century ordeals. Bolivia still keeps the Confederation's memory as a lost great destiny - and Santa Cruz as the founder of its state.