Chilean Army The army was actively involved in the Independence War, which was fought against royalist troops in battles such as Yerbas Buenas, San Carlos, Quechereguas, Rancagua, Chacabuco and Maipú. During this period, national figures such as José Miguel Carrera, Bernardo O'Higgins and Argentinian General José de San Martín commanded the army toward definitive victory over the Spanish forces, ultimately achieving independence for the country. The Army's first commander-in-chief was José Miguel Carrera. After obtaining independence from Spain, the newly formed Republic reorganized its military structure by creating the Military Academy of Chile, which was founded by General O'Higgins in 1817. Diego
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