Julia Gillard continued to differ as to the extent of Gillard's foreknowledge and planning of the replacement of Rudd. Rudd initially said that he would challenge Gillard, but it soon became apparent that he did not have enough support within the party to survive in his position. Hours before the vote on 24 June, he resigned as Prime Minister and Leader of the Labor Party, leaving Gillard to assume the leadership unopposed. Treasurer Wayne Swan was at the same time elected unopposed to succeed Gillard as Deputy Leader. Shortly afterward, Gillard was sworn in as the 27th Prime Minister of Australia by
Julia Gillard Governor-General Quentin Bryce, with Swan being sworn in as Deputy Prime Minister. The members of the Rudd Ministry, with the exception of Rudd himself who returned to the backbenches, subsequently became the members of the First Gillard Ministry. Later that day, in her first press conference as Prime Minister, Gillard said that at times the Rudd Government "went off the tracks", and "[I] came to the view that a good Government was losing its way". Gillard offered wider explanation of her motivations for replacing Rudd during the 2012 Labor leadership spill in which Rudd challenged Gillard to regain the Labor