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
Mexican War of Independence rule until the Hidalgo revolt of 1810. Elites in Mexico City in the seventeenth century did force the removal of a reformist viceroy, the Marqués de Gelves, following an urban riot in 1624 fomented by those elites. He attempted to eliminate corrupt practices by creole elites as well as rein in the opulent displays of the clergy's power, but ecclesiastical authorities in conjunction with creole elites mobilized urban plebeians to oust the viceroy. The crowd was reported to shout, "Long live the King! Love live Christ! Death to bad government! Death to the heretic Lutheran [Viceroy Gelves]! Arrest the viceroy!"