 On his return to Spain in 1831, Ricafort requested the post of the Captaincy General of Mallorca, the Canary Islands or any entity that was vacant.From 1832 to 1834, he served as captain general of Cuba, as appointed by Ferdinand VII.His administration had to face a cholera epidemic that decimated the population and the return of exiled liberals.