Chilean War of Independence was officially issued by Chile on February 12, 1818 and formally recognized by Spain in 1844, when full diplomatic relations were established. The Chilean War of Independence was part of the more aroused Spanish American wars of independence. Independence did not have unanimous support among Chileans, who were divided between independentists and royalists. What started as a political movement among elites against the colonial power, ended as a full-fledged civil war. Traditionally, the process is divided into three stages: the "Patria Vieja", 1810–1814; the "Reconquista", 1814–1817; and the "Patria Nueva", 1817–1823. At the start of 1808, the Captaincy General of
Latin American wars of independence movement against their colonial master, finally ended as a full-fledged civil war. Traditionally, the process is divided into three stages: Patria Vieja, Reconquista, and Patria Nueva. The first uprising against Spanish rule took place in 1809, and criollos in Ecuador set up a junta on September 22, 1810 to rule in the name of the Bourbon monarch; but as elsewhere, it allowed assertion of their own power. Only in 1822 did Ecuador fully gain independence and became part of Gran Colombia, from which it withdrew in 1830. At the Battle of Pichincha, near present-day Quito, Ecuador on May 24, 1822,