Viceroyalty of Peru Guayaquil and El Callao, but on 4 February he captured Valdivia, called at the time "The Key of the South Seas" and the "Gibraltar of the Pacific", due to its huge fortifications. However the viceroyalty managed to defend Chiloé Island until 1826. On September 8, 1820, the "Expedición Libertadora" of Peru, organized mainly by Argentinians and with some Peruvian and Chilean involvement, landed on the beach at Paracas Bay, near the city of Pisco, Peru. The army was under the command of José de San Martín. After fruitless negotiations with the viceroy, San Martín occupied the Peruvian capital of Lima
Constituent Congress of Peru, 1822 into departments, provinces and districts. The main task of the legislators, that is drafting the first Constitution of independent Peru and legislative work was hampered by the difficult circumstances that arose in late 1822 and early 1823. There were no resources to pay salaries to military and civilian employees, and around the capital were ravaged by bandits. As for the war against the Spanish who still held out in southern Peru, the Governing Board decided to conduct the military plan of San Martín, to attack the royalists from South intermediate ports. But it needed outside military help. Indeed, it was