On 14 July 2022, Draghi announced his resignation as Prime Minister of Italy, after the Five Star Movement withdrew from his national unity government; however his resignation is rejected by President Sergio Mattarella. Eight days later on 22 July, Draghi announced his resignation for the second time with Mattarella accepting his resignation. Draghi remained in office as caretaker prime minister, until the formation of a new government following the general election in October 2022. He was replaced by Giorgia Meloni.