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 conclusion of a criminal investigation. After a week of controversy, Gillard announced that she was asking Slipper to delay his return to the Chair pending the conclusion of concurrent civil proceedings, in an effort to dispel what she described as a "dark cloud" over her government (a reference also to the ongoing Craig Thomson affair involving a Labor MP linked to corruption allegations). In the light of poor polling results for the Gillard Government, speculation that Foreign Minister and former Prime Minister Kevin Rudd wished to challenge Gillard for the leadership culminated with Rudd resigning from the Cabinet on 22