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
Palmares (quilombo) This government was confederate in nature, and was led by an elected chief who allocated landholdings, appointed officials (usually family members), and resided in a type of fortification called Macoco. Six Portuguese expeditions tried to conquer Palmares between 1680 and 1686, but failed. Finally the governor of the captaincy of Pernambuco, Pedro Almeida, organized an army under the leadership of the Bandeirantes Domingos Jorge Velho and Bernardo Vieira de Melo and defeated a palmarista force, putting an end to the republic in 1694. Palmares was the general name given by the Portuguese in Pernambuco and Alagoas to the interior districts