Then, on April 5, 1818, San Martín inflicted a decisive defeat on Osorio in the Battle of Maipú, after which the depleted royalists retreated to Concepcion, never again to launch a major offensive against Santiago.