HELSINKI (Reuters) - Finland’s jointly ruling eurosceptic Finns party saw its support tumble in municipal elections on Sunday, potentially tipping its own leadership race in favor of a hardline anti-immigration candidate.

Slideshow ( 6 images )

The moderate nationalist Finns party won 8.8 percent support, slumping from the 17.7 percent of the vote it won in a 2015 parliamentary election and its 12.3 percent support in 2012 local elections.

The downturn for the second-biggest party in parliament could spell trouble for the three-party government by boosting support in the party’s leadership race for Jussi Halla-aho, who has said he wants to take the country out of the euro zone and the European Union.

Finance Minister Petteri Orpo’s conservative NCP retained its position as the leading local government party with 20.7 percent support, followed by the opposition Social Democrats with 19.4 percent and Prime Minister Juha Sipila’s Centre party with 17.5 percent.

The small opposition party The Greens also won more support than the Finns party.

The Finns party, previously known as True Finns, has in recent years softened its nationalist and anti-EU platform, helping it enter the government but also angering some of its core voters.

“There’s no way around it, we took it on the chin... We suffered from the government’s austerity policy. Our work for the fatherland took its toll,” Foreign Minister Timo Soini who is due in June to step down from the helm of the Finns party, told reporters.

“The party must analyse what it wants, whether it wants to stick to the government policy... I hope it will not become an opposition party that protests everything.”

Halla-aho, a member of the European Parliament and an anti-immigration hardliner, is one of two front-runners in the Finns’ leadership race along with lawmaker Sampo Terho, a Soini ally.

“The party’s support curve has been catastrophic, so they will likely seek to raise their profile in the government,” said Markku Jokisipila, a political scientist at the University of Turku.

“This vote definitely plays in the favor of Halla-aho ahead of the June party congress.”

The three government parties got just 47 percent of votes. The coalition has faced strikes and demonstrations over its austerity policies, including a hard-fought labor reform deal which cut workers’ benefits and increased working hours.

Economists have warned that a government crisis would endanger the implementation of a health care reform that is seen as a key part of the government’s plan to cut public spending by 10 billion euros ($10.6 billion) over the long term.