Prime Minister Scott Morrison looked set to form a majority government as vote counting from Australia's weekend election allayed fears that his conservative Coalition may have to rule in the minority following its shock victory.
The Coalition was returned to power in a stunning result on Saturday, after opinion polls and odds-makers had tipped the opposition Labor Party to win.
The outcome ranks as Australia's biggest election upset since 1993, when Labor Prime Minister Paul Keating was returned to power.
With 76 seats in the House of Representatives needed for majority rule, figures from the Australian Electoral Commission showed that with around 84 per cent of votes counted, the Coalition was on target to win 78 seats — an increase of five after going into the election as a minority government.
The Labor Party was set to claim 67 seats, with independents and minor parties taking six.
Winning a majority of the seats would also allow Morrison's Coalition to appoint the house speaker from its own ranks, rather from among independent or minor party MPs.
After being elected in 2016 with 76 seats, the power base of Morrison's Coalition was diminished through a series of byelections late in its three-year term.
One such defeat was triggered by the ousting last August of then-Prime Minister Malcolm Turnbull in an internal party vote.
That move, which ended in Morrison becoming prime minister, caused widespread disgust among Australian voters sorely disillusioned by seeing another one of their leaders replaced without them having a say.
Morrison had become Australia's sixth prime minister in only eight years. Four such changes had been brought about by MPs voting to dump their party's leader, two each from the Coalition and the Labor Party.
Morrison's predecessor, Turnbull, had himself become Prime Minister in 2015 through an internal party coup that dumped Tony Abbott as leader of the Liberal Party.
Analysts had predicted that the Coalition would pay dearly for that latest leadership switch, with Morrison expected to exit after one of the shortest terms as Prime Minister in Australian history.
Most late surveys showed Labor leader Bill Shorten as having a small but clear lead over Morrison as preferred prime minister, 51 per cent to 49 per cent.
Bookmakers had Labor at odds as short as A$1.16 to A$1 to win government, with the coalition as long as A$5.50.
As analysts tried to make sense of the outcome, several factors were highlighted.
One of them was the strong and effusive campaigning of Morrison himself, praised by his Treasurer, Josh Frydenberg, for having "crisscrossed the country with great energy, belief and conviction" while selling "our economic plan to the Australian people, a plan that resonated with them."
By contrast, Labor was said to have suffered by campaigning on a long and complex list of initiatives, including an ambitious plan for reducing greenhouse emissions and proposed changes to taxes on income from the stock market, which the Coalition attacked as a "retirees' tax."
While Shorten insisted after the defeat that it had been right to argue for "what was right, not what was easy," his deputy leader, Tanya Plibersek, conceded that the party suffered from a campaign platform that was too cluttered.
"Our policy agenda was big. It was bold. And I think perhaps we didn't have enough time to explain all of the benefits of it to the people who would benefit," Plibersek said.
Labor's campaign swung more towards policies than personalities, with Shorten, a 52-year-old former union boss, considered to lack sufficient charisma to win a popularity contest with the effervescent Morrison, a 51-year-old known for his love of family, church and football.
One telling result came when high-profile independent MP Dr Kerryn Phelps conceded defeat to the Liberal Party in the Sydney electorate of Wentworth — the seat vacated by Turnbull on his resignation from Parliament last year.
While Phelps had wrested the seat from its traditional conservative base last August, she lost it back to the Liberals' Dave Sharma only nine months later, suggesting a gulf in public sentiment between a byelection and a general election.
"Clearly, the country decided it wanted to return a Liberal government," Phelps told reporters.
Labor has begun the task of finding a new leader.