 After he became the perpetual ambassador of the City of Paz in Peru, he returned to Spain and subsequently did not see any more active service until 1825.Due to ill health, Ricafort returned to Spain before the end of the conquest of the South American colonies.In 1825, he was named Governor-General of the Philippines, arriving at Manila in October, and by a royal order also took possession of the intendancy of exchequer.