Chile–Spain relations Captaincy General of Chile declared Chile as an autonomous republic within the Spanish monarchy. For the next decade, Chilean forces would battle Spanish troops for independence. In October 1814, Chilean troops lost during the Battle of Rancagua which led to the "Reconquista" of Chile by Spain from 1814-1817. In February 1817, troops led by General Bernardo O'Higgins, along with General José de San Martín and the "Army of the Andes" entered Chile from Argentina through the Andes and fought Spain in the Battle of Chacabuco which resulted in a Chilean/Argentine victory. In April 1818, O'Higgins and San Martín's forces fought
José de San Martín Freire captured Talca. Las Heras routed royalist outposts in Juncalito and Potrerillos. Bernardo O'Higgins, who came from Los Patos pass, defeated the royalists at Las Coimas. This allowed the main columns to gather at Aconcagua valley, meeting at the slopes of Chacabuco. Royalist commander Rafael Maroto converged his armies on that location as well. Maroto had 2,450 men and 5 pieces of artillery, San Martín had 3,600 men and 9 pieces of artillery. The misdirection that concealed the path of the bulk of the Army allowed San Martín this advantage, as other royalist forces were scattered in other regions of