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 by the Spanish governor, Manuel María de Salcedo. Their victory at the Battle of Rosillo Creek convinced Salcedo to surrender on April 1, 1813; he was executed two days later. On April 6, 1813, the victorious Republican Army of the North drafted a constitution and declared the independent Republic of Texas, with Gutiérrez as its president. Soon disillusioned with the Mexican leadership, the Americans under Kemper returned to the United States. The ephemeral Republic of Texas came to an end following the August 18, 1813 Battle of Medina, where the Spanish Army crushed the Republican Army of the North. The