José de San Martín The navy sailed from Chile on 20 August 1820. It was composed of eight warships, eleven gunboats, 247 cannons and a crew of 1,600, most of them Chileans. There were 12 frigates, and a brig with the 4,000 soldiers of the Army of the Andes. San Martín was the leader of the military expedition. They landed in Paracas, 200 km to the south of Lima, on 7 September, and occupied the nearby city of Pisco, which was abandoned by the royalists. Peruvian viceroy Joaquín de la Pezuela had instructions from Spain to negotiate with the patriots. Under an armistice the
José Bernardo de Tagle y Portocarrero, Marquis of Torre Tagle member of the triumvirate under José de La Mar. In January 1823, the congress appointed him president, but a military mutiny deposed him and proclaimed José de la Riva Agüero president on 28 February. After the deposition of Riva Agüero and his retreat to Trujillo, Torre Tagle was appointed president by Antonio José de Sucre on 20 July, and elected by the congress on 16 August, and Bolivar, who on his arrival 1 September had been proclaimed dictator, left him in charge of the government. During his tenure, the Peruvian flag, which had been established by José de San Martín,