In 1832, in the last years of the reign of Fernando VII, he was designated Commander in chief of Granada. The following year he was bestowed the title Duque de Ahumada. In 1835 he was named Minister of the War again, but was forced to resign after being accused of nepotism. During the last few years of his life he spent many years abroad and traveled, and dedicated his time to study and writing. His memoirs Memories 1778-1837 offers an insight into his life. He died in 1842.
