José de San Martín Manuel Rodríguez had returned to Chile before the crossing, and began a guerrilla war in Santiago de Chile against the royalists, in support of the upcoming army. He was supported in the south of the city and the countryside. The strategy was to occupy nearby villages, seize the royalists' weapons and flee. The attacks on Melipilla and San Fernando, and a failed one at Curicó, demoralized the royalists. The columns that crossed the Andes began to take military actions. The column in the north led by Cabot defeated the royalists in Salala, seized Coquimbo and then Copiapó. In the south,
Army of the North Goyeneche and Joaquín de la Pezuela, an able and experienced soldier, had the advantage, he negotiated with Goyeneche a 40-day armistice. The Assembly in Buenos Aires and the viceroy of Peru, José Fernando de Abascal, disapproved of this agreement. The royalists attacked by surprise, disregarding the agreement, before the arrival of reinforcements at the Battle of Vilcapugio on 1 October 1813. The royalist army, commanded by brigadier Joaquín de la Pezuela and with 4,000 men and 12 pieces of artillery confronted a patriot army with a high morale composed of 3,500 men, 14 pieces of artillery and cavalry mounted mostly