After Simón Bolívar and Antonio José de Sucre defeated the royalists in northern South America, Sucre led a campaign that was to defeat the royalists in Charcas for good when the last royalist general, Pedro Antonio Olañeta, suffered death and defeat at the hands of his own defected forces at the battle of Tumusla.