Marco del Pont's rule ended on February 12, 1817, when the defeat of the Royalist forces under the command of Rafael Maroto in the Battle of Chacabuco allowed the patriot forces to enter the capital. The governor Marco del Pont tried to escape to Valparaíso to catch a transport leaving for Peru, but he was intercepted by an advance column of the patriot army at an "hacienda" called "Las Tablas" near El Quisco. After his capture, he was interviewed by San Martín, who sent him to Mendoza and later San Luis. His days ended after a final move to the hacienda of Pedro Ignacio de Mujica, near Renca, in Luján a city close to Buenos Aires, when he died in prison in 1819.