Julia Gillard, the Australian prime minister, has fought off a leadership challenge, emerging victorious from a party vote after former leader Kevin Rudd made a last-minute decision not to run.
Gillard called the shock ballot on Thursday as internal unrest was high in a party which is struggling ahead of general elections in September.
Her decision followed senior cabinet minister Simon Crean openly urging a vote, with Gillard lagging badly in opinion polls and leadership speculation rampant.
"Today the leadership of our political party has been settled and has been settled in the most conclusive fashion possible."
- Prime Minister Julia Gillard
But Rudd, who was ousted by Gillard in mid-2010, indicated he did not have the numbers to topple the premier, after being roundly beaten when he resigned as foreign minister and launched a previous challenge in February 2012.
Since losing that battle, he has repeatedly pledged his support for the prime minister and despite his backers campaigning behind the scenes, maintained on Thursday he was a man of honour.
"I'm not prepared to dishonour my word... others take such commitments lightly, I do not," he said just minutes before Labor parliamentarians were due to vote.
"I have also said that the only circumstances under which I would consider a return to leadership would be if there was an overwhelming majority of the parliamentary party requesting such a return, drafting me to return and the position was vacant," said Rudd.
"I am here to inform you that those circumstances do not exist."
With Rudd out of the running, the ballot went ahead with Gillard retaining the leadership unopposed.
Deputy Prime Minister Wayne Swan also retained his position after Crean withdrew as a candidate, according to Chris Hayes, returning officer for the Labor party vote who described the mood inside the caucus room as "sombre".
'Get on with it'
A defiant Gillard said she now planned to get on with governing the country.
"Today the leadership of our political party has been settled and has been settled in the most conclusive fashion possible," she said.
"The whole business is completely at an end. It has ended now… The government has a plan for the nation's future and we plan to get on with it."
However, as the elections approach Gillard is struggling to fend off concerns over her leadership and political strategy, and complaints over policy flip-flops that have seen her dubbed "Ju-liar".
The latest polls showed Gillard's personal ratings have risen against conservative opposition leader Tony Abbott but that the Labor Party stood a much better chance of victory under Rudd.
The March 12 Newspoll found that that if Rudd were leader, Labor would win 56 percent of the vote, with minor parties stripped out, compared to 44 percent for the opposition. With Gillard at the helm, they would lose to Abbott's coalition.
Crean, another former Labor leader and party elder, sparked the ballot earlier in the day, warning that leadership speculation was "killing" the party and that the "stalemate has to end" to prevent it from imploding.
"Something needs to be done to break this deadlock, to resolve the issue once and for all," he told reporters, handing his support to Rudd.
Crean was subsequently sacked by Gillard from his position as arts minister in her cabinet.