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
Battle of Ochomogo Battle of Ochomogo The Battle of Ochomogo (5 April 1823) was fought in Ochomogo, to the west of Cartago, Costa Rica, shortly after the country became independent from Spain. Republican militia from San José and Alajuela led by Gregorio José Ramírez defeated conservative forces from Cartago, the capital, who supported making Costa Rica part of the new Mexican Empire. The Republicans won and San José became capital of the country, which remained independent within the Federal Republic of Central America. Cartago was the first Spanish settlement in Costa Rica, founded in 1563 by Juan Vázquez de Coronado. It was the