Peru–Bolivian Confederation Felipe Salaverry, who rebelled and overthrew him in 1835. Orbegoso, however, did not lose the support of southern Peru and called in to his help the president of Bolivia. It was the opportunity that Marshal Santa Cruz, himself a former president of Peru, was waiting for. The Bolivian army promptly proceeded to invade Peru. With Bolivian help, General Orbegoso quickly regained his leadership throughout the country and had Salaverry executed. As a reward for the support he had received from Santa Cruz, he agreed to the formation of the new Peru–Bolivian Confederation. Santa Cruz assumed the "supreme protectorship" of the
First Upper Peru campaign of Córdoba, which was already executed for his support to Liniers. This mail mentioned a royalist army led by Goyeneche advancing over Jujuy. Balcarce, who had advanced to Potosi, was defeated by Nieto in the Battle of Cotagaita, so Castelli sent two hundred men and two cannons to strengthen his forces. With these reinforcements Balcarce achieved the victory at the Battle of Suipacha, which allowed patriots to control all of Upper Peru unopposed. One of the men sent was Martín Miguel de Güemes, who would eventually lead the "Guerra Gaucha" in Salta years later. At Villa Imperial, one of the