Bernardo O'Higgins accepted the position instead, and became the leader of an independent Chile. He was granted dictatorial powers as Supreme Director on 16 February 1817. On 12 February 1818, Chile proclaimed itself an independent republic. Throughout the war with the royalists, O'Higgins had engaged in an ongoing feud with José Miguel Carrera. After their retreat in 1814, O'Higgins had fared much better than Carrera, who found little support forthcoming from San Martín, O'Higgins' political ally. Carrera was imprisoned to prevent his involvement in Chilean affairs; after his escape, he ended up taking the winning side in the Argentine Federalist war, helping
José de San Martín Nearly 700 expeditionary soldiers of New Granada deserted and joined the patriots. Several populations in the north of Peru supported San Martín, and Arenales defeated the royalists at the Battle of Pasco. More than 300 royalists joined the patriots, including Andrés de Santa Cruz. However, the plans did not fully work as intended. The native populations that joined Arenales could not resist the royalist counter-attacks, and the slaves did not join the army in the expected numbers. The Argentine provinces could not send the supporting army that San Martín had requested earlier, and the Army of the North no longer