Julia Gillard has been ousted as Labour Party leader by her predecessor, Kevin Rudd, in a vote by party legislators, three years and two days after she ousted him in a similar showdown

Australian Prime Minister Julia Gillard was ousted as Labour Party leader on Wednesday by her predecessor, Kevin Rudd, in a vote of party legsilators hoping to avoid a huge defeat in upcoming elections.

The ballot took place three years and two days after Ms. Gillard ousted Mr. Rudd in a similar internal government showdown to become the country’s first female Prime Minister. Wednesday’s vote makes Mr. Rudd leader of the party, but he is not yet Prime Minister and may not get the job if legislators abandon Labour’s ruling coalition.

Party official Chris Hayes said Ms. Gillard lost 57 votes to 45.

Mr. Rudd will likely have to demonstrate that he can command a majority of legislators in the House of Representatives before Governor-General Quentin Bryce makes him Prime Minister as early as Thursday.

If he cannot, opposition leader Tony Abbott could be asked to form a government, or the elections could be moved up from September to August.

Labour controls 71 seats in the 150-seat House of Representatives, Mr. Abbott’s coalition holds 72 and the remaining 7 are held by independents or the minor Greens party.

Constitutional lawyer George Williams of the University of New South Wales said it is likely that the government will retain power with the support of independent legislators and Mr. Rudd as Prime minister.

The September 14 election was a Ms. Gillard promise. Mr. Rudd could call an election as early as August 3, 2013.

More In: World | International | News