Lord Cochrane, unsuccessfully attacked 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.