 After the end of the war with France in 1814 he retired again.He was recalled in 1823 to the Presidency of the Regency (today we would call this Prime Minister of Spain) and was responsible for returning the king to the throne.Soon afterwards, tired of intrigue in the court and government, he retired to his country estates and eventually died there in 1841.