 He occupied the post of "President of the Council of State" between 1845 and 1849.He served as the President of the National convention from 1855 to 1856.In 1855 he was named Minister of War under Ramón Castilla, and later served as Prime Minister of Peru from July to October 1858.