[2] 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.
Torrico launched a successful coup d'état against Manuel Menéndez and assumed the presidency of Peru.
His grab for power was short-lived since Peru was suffering various civil wars and Torrico was ousted during that same year by Juan Francisco de Vidal.
Torrico found refuge in Bolivia, where he conspired against Vidal and then against Manuel Ignacio de Vivanco.
He was subsequently named Minister of Finance during Ramón Castilla's government in 1851,[3] and later became Peru's ambassador to France under Juan Antonio Pezet.