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
Army of the North of the Royalist forces in Upper Peru. On 12 May Orozco commanding a force of 4,000 men advanced to Jujuy, and on 28 May occupied the city, then on 31 May occupied Salta. On 2 June the royalist forces defeated the patriots at Chamical (southwest of the city of Salta). At the battle of Las Cañas lieutenant colonel Rojas was killed but the force of 400 royalists was defeated. On 8 June there was a new independentist victory at Cuesta de la Pedrera (southeast of Salta), dispersing 2,000 royalists who retreated to Jujuy. At the battle of Yala another royalist