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 a victory at Utarango but was later defeated on 12 February by the San Juan river. Rondeau received an order to retreat to Tucumán. The army, almost beaten, marched for nine months going through Potosí and Humahuaca until reaching Tucumán. On 7 August 1816 at Trancas, Rondeau was replaced again by Manuel Belgrano. Martín Miguel de Güemes was named commander of the northern border. Belgrano moved the army to the citadel built by San Martín in the city of Tucumán. There he attempted to rebuild the morale, and materials, in search for a new action in Upper Peru, combining with