Answer
In the aftermath of the Battle of Maipú, General José de San Martín assumed control of Lima, marking a pivotal turning point in South America's quest for independence. In this decisive battle, fought on April 5, 1818, the Army of the Andes under San Martín's command delivered a crushing blow to royalist forces, securing Chile's independence and opening the path for the liberation of Peru.