The rapid resurgence of nationalist politics in Australia was abruptly halted on Saturday after Pauline Hanson's One Nation party drew less than 5 percent of the vote and was set to win just one seat in a state poll.
The election in mineral-rich Western Australia was won convincingly by the centre-left Labor party, leaving Ms Hanson's right wing, anti-immigration party trailing far behind.
The vote was the first major test of popularity for Ms Hanson since winning a place in the federal parliament last year, when she rode a wave of anti-establishment sentiment similar to that seen in the United States and Europe.
With two-thirds of the votes counted the Australian Broadcasting Corporation (ABC) forecast that One Nation would win one seat, confounding expectations that it could gain enough to influence legislation in the new state parliament.
"This has certainly halted the sense of momentum building around One Nation that has been there since July last year," said Associate Professor Haydon Manning, a political scientist at Flinders University.
Before the vote, the governing Liberal party ditched its traditional allies to strike a deal with Ms Hanson's party to swap preferences - a measure in Australia's voting system designed to help both parties increase their presence in the new parliament.
The deal appears to have back-fired, with Ms Hanson losing some of her anti-establishment fervour and the state Liberals putting off their centre-right base.
Ms Hanson, who is wary of foreign investment and wants to suspend Muslim immigration, said late on Saturday the deal was a mistake.
"Doing the deal with the Libs has done damage to us, in all honesty," she told Channel 7 as the election results became clear.
The election result has ended plans for several asset sales that Labor campaigned against, including a proposal to sell a majority stake in the AUD$15 billion (£12.3 bl) Western Power electricity grid through a public float along with privatisation of the $1.5 billion Fremantle Port.
Labor has won the vote decisively by an anticipated 40 seats to the Liberals 19, and will govern without needing a coalition partner.
So One Nation can rule out a preference deal but Malcolm Turnbull can't do the same.— Bill Shorten (@billshortenmp) 12 March 2017
Just so weak.
The result will also see mining giants Rio Tinto and BHP Billiton escape a state tax on their iron ore businesses proposed by the rural-centric National Party, which fell short of obtaining the influence to force such a measure.
Outgoing Liberal Premier Colin Barnett was the country's longest serving political leader, having seen four changes of prime minister during his tenure.
His federal counterpart, Liberal prime minister Malcolm Turnbull, rejected suggestions his own performance had contributed to the election defeat.
"There is no evidence of federal factors playing a role there," said Mr Turnbull, who has fallen behind the federal Labor opposition in opinion polls.