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
Republic of Texas the Isthmus of Panama (including Texas) sought independence in the Mexican War of Independence. Many Americans fought on the side of Mexico against Spain in filibustering expeditions. One of these, the Gutiérrez–Magee Expedition (also known as the Republican Army of the North) consisted of a group of about 130 Americans under the leadership of Bernardo Gutiérrez de Lara. Gutierrez de Lara initiated Mexico's secession from Spain with efforts contributed by Magee. Bolstered by new recruits, and led by Samuel Kemper (who succeeded Magee after his death in battle in 1813), the expedition gained a series of victories against soldiers led