History of Chile the Spaniards at the Battle of Chacabuco on February 12 and marking the beginning of the "Patria Nueva". San Martín considered the liberation of Chile a strategic stepping-stone to the emancipation of Peru, which he saw as the key to hemispheric victory over the Spanish. Chile won its formal independence when San Martín defeated the last large Spanish force on Chilean soil at the Battle of Maipú on April 5, 1818. San Martín then led his Argentine and Chilean followers north to liberate Peru; and fighting continued in Chile's southern provinces, the bastion of the royalists, until 1826. A declaration
Army of the North and 9 artillery pieces could not deal with the 5,100 royalists and 23 artillery pieces and had to escape with about 1,000 casualties, while the royalists only counted 32 dead. Objectives were not met and the provinces were left surrounded by potential enemies. British and French could arrive by sea, Portuguese from the East and Spaniards from the North. Had they conquered Upper Perú, the biggest threat, the royalists, would have been ended. In January 1816, Lieutenant Colonel Gregorio Aráoz de Lamadrid was sent to the north, but on 31 January was defeated at Culpina. On 2 February he won