History of Spain (1810–73) daring march from Venezuela to New Granada (Colombia), he defeated Spanish forces at the Battle of Boyacá in 1819, ending Spanish rule in Colombia. Venezuela was liberated on 24 June 1821 when Bolívar destroyed the Spanish army on the fields of Carabobo on the Battle of Carabobo. Argentina declared its independence in 1816 (though it had been operating with virtual independence as a British client since 1810 after successfully resisting a British invasion). Chile was retaken by Spain in 1814, but lost permanently in 1817 when an army under José de San Martín, crossed the Andes Mountains from Argentina to
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!"