Pedro Antonio Olañeta

Pedro Antonio Olañeta (1770 in Elgueta, Gipuzkoa, Spain – April 2, 1825 in Tumusla (Potosí Department), Bolivia) was a Royalist commander in the army of the Spanish Empire who fought the against the South American insurgency led by Simón Bolívar. His support for Spanish absolutism and rebellion against the moderate Royalists created conflicts within the Royalist army that aided the rebels. After the defeat of the main Royalist armies, he continued the resistance, becoming one of the last Royalist commanders to hold out.

Early life
Olañeta was born of a humble family in Biscay province, Spain and emigrated with his parents to South America in 1797. He settled in the area of Potosí and Salta, becoming a prosperous trader.

Royalist commander
When the May Revolution occurred in 1810 he sided with the Royalists, commanded by General José Manuel de Goyeneche, and fought as an officer in campaigns against the rebels. He was promoted to colonel under the command of Joaquín Pezuela, then to brigadier general under Viceroy José de la Serna e Hinojosa in 1821. After the liberal revolution in Spain under Fernando VII, Olañeta rejected the authority of La Serna and proclaimed himself "the only defender of throne and altar". Olañeta then ordered an attack of the Upper Peruvian royalists on the constitutionalists in the Peruvian viceroyalty. The Viceroy de La Serna was forced to change his plans of going down to the coast to fight Bolívar and sent Jerónimo Valdés with a force of 5,000 veterans to cross the Desaguadero River, which took place on January 22, 1824, in order to drive them to Potosí against his former subordinate "because there are indications of a meditated treason, joining the dissidents of Buenos Aires". Memorias para la historia de las armas españolas en el Perú ("Memories for the history of the Spanish armies in Peru") by peninsular official Andrés García Camba (1846) detailed the radical change that the events in Upper Peru produced in the viceroy's defensive plans. After a long campaign in the battles of Tarabuquillo, Sala, Cotagaita, and finally La Lava on August 17, 1824, both royalists forces of Viceroyalty Peru (liberals) and of the provinces of Upper Peru (absolutists) were decimated.

Continuing resistance
Bolivar, having news of Olañeta's actions, took advantage of the dismantling of the royalist defensive system so that he "moved the whole month of May to Jauja", and faced José de Canterac, who was isolated in Junín on August 6 of 1824. Unrelenting prosecution of the war started, with the consequent desertion of 2700 royalists, who immediately went over to the independentists. Finally, October 7 of 1824, having his troops right in front of the doors of Cusco, Bolívar gave general Sucre the command of the new battle front, which followed the course of the Apurímac River, and he withdraw to Lima in order to negotiate more loans to keep the war going in Peru, and to receive a Colombian division of 4000 men given up by Páez which would arrive after Ayacucho.

After the decisive defeat of the main royalist armies in the Battle of Ayacucho, Olañeta continued a hopeless resistance against Simón Bolívar's forces in the Campaign of Sucre in Upper Peru (today's Bolivia). On April 2, 1825, after a desperate fight, Olañeta was mortally wounded in the Battle of Tumusla, fighting with a few hundred men against many of his own ex-troops led by Colonel Carlos Medinaceli, who had defected to the patriots. He died the following day. This battle of the war of independence was the last engagement in an open field by regular armies in South America. Unaware of his death, Fernando VII appointed him Viceroy of the Rio de la Plata. After the battle Antonio José de Sucre called a congress of Upper Peru and saw the creation of a new nation, Bolivia.