Unlike in New Spain and Central America, in South America independence was spurred by the pro-independence fighters who had held out for the past half-decade. José de San Martín and Simón Bolívar inadvertently led a continent-wide pincer movement from southern and northern South America that liberated most of the Spanish American nations on that continent. After securing the independence of Chile in 1818, San Martín concentrated on building a naval fleet in the Pacific to counter Spanish control of those waters and reach the royalist stronghold of Lima. By mid-1820 San Martín had assembled a fleet of eight warships and sixteen transport ships under the command of Admiral Cochrane. The fleet set sail from Valparaíso to Paracas in southern Peru. On 7 September, the army landed at Paracas and successfully took Pisco. After this, San Martín, waiting for a generalized Peruvian revolt, chose to avoid direct military confrontation. San Martín hoped that his presence would initiate an authentic Peruvian revolt against Spanish rule, believing that otherwise any liberation would be ephemeral. In the meantime, San Martín engaged in diplomacy with Viceroy Joaquín de la Pezuela, who was under orders from the constitutional government to negotiate on the basis of the 1812 Constitution and to maintain the unity of the Spanish Monarchy. However, these efforts proved fruitless, since independence and unity of the monarchy could not be reconciled, so the army sailed in late October to a better strategic position in Huacho, in northern Peru. During the next few months, successful land and naval campaigns against the royalists secured the new foothold, and it was at Huacho that San Martín learned that Guayaquil (in Ecuador) had declared independence on 9 October.