 He returned to Peru after the fall of Vivanco's government in 1844.He was subsequently named Minister of the Economy and Finances during Ramón Castilla's government and later became Peru's ambassador to France under Juan Antonio Pezet.He died in Paris on March 27, 1875.