Díaz-Canel was close with Raúl Castro and many knew when Castro retired, he would have been the likely successor when he retired in April 2018. He was sworn-in as President a day before his 58th birthday. In April 2021, he replaced Castro as First Secretary of the Communist Party of Cuba.