In 1822 he served under Simón Bolívar and participated in the Battle of Ayacucho. From there on, San Román participated in various battles during the first years of the Peruvian republican period. He supported Agustín Gamarra until his defeat in the battle of Ingavi.