A sudden revolt within Australia's ruling party gave the country its first woman prime minister, who today promised to safeguard her government's reforms in education, health and industrial law.

Julia Gillard had been deputy to Prime Minister Kevin Rudd since their Labour Party swept to power in a landslide election victory in 2007.

In a sudden move that took many government politicians by surprise, she challenged Mr Rudd yesterday to hold a leadership ballot.

Mr Rudd acknowledged that the party's factional power brokers had lost faith in him and did not contest the leadership at a party meeting today, leaving Ms Gillard to be elected unopposed.

"I asked my colleagues to make a leadership change ... because I believed that a good government was losing its way," Ms Gillard told reporters.

"And because I believe fundamentally that the basic education and health services that Australians rely on and their decent treatment at work are at risk at the next election," she said.

"I'm well aware that I am the first woman to serve in this role, but can I say to you, I didn't set out to crash my head on any glass ceilings," she added.

Ms Gillard and her new deputy, Wayne Swan, were sworn into their offices today by Australia's first woman Governor-General, Quentin Bryce.

Mr Swan retains his key financial portfolio as treasurer and will to fly to Canada tomorrow for a summit of Group of 20 major economies in Mr Rudd's place. He was also elected unopposed. Ms Gillard has yet to announce any other ministers in her new cabinet.

An emotional Mr Rudd, flanked by his wife and three children, gave his final speech in the prime minister's court yard at Parliament House, during which he rated keeping Australia out of recession at the top of his list of achievements during his short tenure.

He said he would contest the next election and continue to serve his party.

Mr Rudd had ridden high in opinion polls as one of the most popular Australian prime ministers of modern times until he made major policy backflips, including a decision in April to shelve plans to make Australia's worst polluters pay for their carbon gas emissions.

Ms Gillard signalled no major policy changes during her first press conference, saying that negotiations with the mining industry would continue over the government's plan to introduce a new tax on mineral profits after the next election.

But she would end an advertising campaign that is promoting the tax, keeping a Labor promise that Mr Rudd broke to never use taxpayers' money for political advertising.

John Wanna, an Australian National University political scientist, suspected that Ms Gillard might push for an earlier withdrawal of Australia's 1,550 troops from Afghanistan in a bid to reverse a swing of left-wing voters away from the government.

She is from a left-wing faction of Labor, while Mr Rudd had been supported by the party's right faction.

Ms Gillard was likely to be less focused on foreign policy than Mr Rudd, a Mandarin-speaking former diplomat to Beijing who campaigned to create a new forum for Asia-Pacific nations and for an Australian seat on the United Nations Security Council, Mr Wanna said.

"He has been trying to get Australia punching above its weight in terms of international relations when a lot of the world thought of us as another state of the United States," Mr Wanna said.

Mr Wanna said dumping Mr Rudd for Ms Gillard just months from an election was risky for the government.

"We've got rid of a successful prime minister after two and a half years and we've never done that before in the past," Mr Wanna said.

Ms Gillard was born in Barry, Wales, in 1961, the second daughter of a family who migrated to Adelaide when she was 4 years old in search of a warmer climate for her lung complaint.

A former successful lawyer, she has been attacked by some opponents as unsuitable to lead because she is childless and therefore out of touch with most Australians.

Despite Australia's weathering the global downturn, recent polling puts the centre-left government neck-and-neck with the conservative opposition. One poll earlier this month showed Labor trailing the opposition for the first time in more than four years.

Mr Rudd is a Labour hero, having led the party to victory at 2007 elections after 11 years in opposition.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.