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
Juan Bautista de las Casas was quickly revolutionized. There was little resistance in Nacogdoches, where the presidio commander was arrested, or in La Bahia. Las Casas promptly confiscated property belonging to Spanish residents, proclaimed himself the head of a provisional government, released political prisoners and jailed royalists. His arbitrary rule disenchanted much of the army, and they soon teamed together with the remaining royalists. Juan Manuel Zambrano, the subdeacon of San Antonio, soon led a counter-insurgency against him. On March 2, Zambrano and his royalists marched on the government house, captured and arrested Casas and Ignacio Aldama, (Hidalgo's ambassador to the United States). Las Casas