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 day. Ten minutes before the ballot was due to occur, Rudd publicly announced that he would not contest the leadership, in line with the commitment he had made following the 2012 contest. As such, Gillard and Wayne Swan were the only candidates for the Leadership and Deputy Leadership of the Labor Party, and were elected unopposed. This marked the first time in history that an incumbent Labor Leader was elected unopposed at a leadership ballot. Several ministers subsequently resigned from the government, including Chief Government Whip Joel Fitzgibbon, Human Services Minister Kim Carr, and Energy Minister Martin Ferguson. Gillard declared