 The royal army of Upper Peru surrendered after Olañeta was killed on April 2, 1825.Former royalists, however, played an important part in the creation of Peru and Bolivia.In Bolivia, royalists, like Casimiro Olañeta, nephew of General Olañeta, gathered in a congress and declared the country's independence from Peru.