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
Juan Bautista de las Casas was quickly revolutionized. There was little resistance in Nacogdoches, where the presidio commander was arrested, or in La Bahia. Las Casas promptly confiscated property belonging to Spanish residents, proclaimed himself the head of a provisional government, released political prisoners and jailed royalists. His arbitrary rule disenchanted much of the army, and they soon teamed together with the remaining royalists. Juan Manuel Zambrano, the subdeacon of San Antonio, soon led a counter-insurgency against him. On March 2, Zambrano and his royalists marched on the government house, captured and arrested Casas and Ignacio Aldama, (Hidalgo's ambassador to the United States). Las Casas