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 that it was not possible to defend Concepción, so he ordered O'Higgins to leave the city. 50,000 Chileans took cattle and grain and moved north, burning everything else, so that they did not leave supplies for the royalists. As he had done with the Tucumán Congress, San Martín urged a declaration of independence, to legitimize the government and the military actions. The Chilean Declaration of Independence was issued on 18 February 1818, one year after the battle of Chacabuco. San Martín, Las Heras and Balcarce met in Curicó, and the royalists in Talca, in a plain known as "Cancha rayada".