José Bernardo de Tagle y Portocarrero, Marquis of Torre Tagle resided in Spain between 1813 and 1817. On his return to Peru, now being a brigadier, he was appointed inspector of the army, and also named Governor of Trujillo. On the arrival of José de San Martín in Peru, he was the first Peruvian officer to hoist the national flag in the north of Peru, and on 24 December 1820 proclaimed Trujillo independent. On 26 July 1822, he was appointed provisional president by San Martin when the latter went to meet Simón Bolivar in Guayaquil. After the departure of San Martin for Chile, on 20 September, Torre Tagle was elected
José de San Martín Nearly 700 expeditionary soldiers of New Granada deserted and joined the patriots. Several populations in the north of Peru supported San Martín, and Arenales defeated the royalists at the Battle of Pasco. More than 300 royalists joined the patriots, including Andrés de Santa Cruz. However, the plans did not fully work as intended. The native populations that joined Arenales could not resist the royalist counter-attacks, and the slaves did not join the army in the expected numbers. The Argentine provinces could not send the supporting army that San Martín had requested earlier, and the Army of the North no longer