 In 1820 Torrico González participated in the army of José de San Martín.He subsequently joined the ranks of Agustín Gamarra and participated under his leadership campaigns against the Peru-Bolivian Confederation, where the Peruvian forces were defeated in 1841 and Gamarra died in the battle of Ingavi on November 18, 1841.After Gamarra's death, Manuel Menéndez assumed the presidency of Peru.