The government of Badoglio remained in being for some nine months. On 9 June 1944, he was replaced as Prime Minister by the 70-year-old anti-fascist leader Ivanoe Bonomi. In June 1945, Bonomi was in turn replaced by Ferruccio Parri, who in turn gave way to Alcide de Gasperi on 4 December 1945. It was De Gasperi who supervised the transition to a republic following the abdication of Vittorio Emanuele III on 9 May 1946. He briefly became acting Head of State as well as Prime Minister on 18 June 1946, but ceded the former role to Provisional President Enrico De Nicola ten days later.