José de San Martín was defeated by the Luso-Brazilian armies, his allies Estanislao López and Francisco Ramírez continued hostilities against Buenos Aires for its inactivity against the invasion. Pueyrredón called the Army of the Andes and the Army of the North (led by Belgrano) to aid Buenos Aires in the conflict. Guido noted to San Martín that if both armies did that, the north of Argentina and Chile would be easily reconquered by the royalists. San Martín also knew that most of the soldiers of the Army of the Andes would not be willing to aid Buenos Aires in the civil war, as most
Army of the North of the Royalist forces in Upper Peru. On 12 May Orozco commanding a force of 4,000 men advanced to Jujuy, and on 28 May occupied the city, then on 31 May occupied Salta. On 2 June the royalist forces defeated the patriots at Chamical (southwest of the city of Salta). At the battle of Las Cañas lieutenant colonel Rojas was killed but the force of 400 royalists was defeated. On 8 June there was a new independentist victory at Cuesta de la Pedrera (southeast of Salta), dispersing 2,000 royalists who retreated to Jujuy. At the battle of Yala another royalist