European Union leaders are breathing a collective sigh of relief after Dutch prime minister Mark Rutte fought off a challenge from anti-Islam challenger Geert Wilders in the Dutch elections.
For many across Europe, the election had been seen as a barometer of populist and anti-immigration sentiment on the continent.
Voter turnout was high, with as many as 13 million voters casting their ballots at polling booths across the Netherlands.
Mr Rutte's ruling party was fighting to form the biggest party in parliament against Mr Wilders's Party for Freedom.
With France and Germany facing elections in the months ahead, Mr Rutte says he hopes the results have now slowed the momentum of what he calls the "wrong sort of populism."
He has pointed to last year's Brexit vote in Britain and the election of President Donald Trump in the United States.
"This is a night when the Netherlands, after Brexit, after the American elections, has said 'stop' to the wrong kind of populism."
The two-time prime minister got a last-minute boost from a diplomatic row with Turkey.
The dispute allowed him to take a well-timed tough line on a majority Muslim country during an election campaign focused on immigration and integration.
Mr Rutte says his party's win is a sign voters endorse his policies and choose not to step away from the European Union.
"I think it means, in the Netherlands, the people have been responsive to two messages -- in the first place, that we should not experiment, that we should continue the policies of the country to make its economy strong, and, now, to make people feel in their personal lives that this economy is one of the best-performing economies in the Western world."
Geert Wilders had believed the anti-establishment sentiment in the European Union would spread, and he campaigned with a promise to exit the Union.
He had also promised to, as he put it, "de-Islamicise" the Netherlands by banning the Koran and banning the burqa.
As final polls suggested his support might be sliding ahead of the election, Mr Wilders insisted, whatever the result, the kind of politics he and others in Europe represent would not go away.
"Whatever the outcome of the elections today, the genie will not go back into the bottle, and this patriotic revolution, whether today or tomorrow, will take place anyway."
Outside the Netherlands, German foreign minister Sigmar Gabriel has expressed his happiness with the result.
"If the results are confirmed that the right-wing populist -- actually, you have to say, 'right-wing radical' -- Wilders has suffered a big loss, then I am happy. It is a strong signal for Europe. It shows that a country like the Netherlands is one of the core European countries and doesn't let itself get incited, and it makes me very happy for democracy in the Netherlands and Europe."
Voters punished the Labour Party in the parliamentary elections, the party apparently plunging from 38 seats at the last election to just nine.
One of the biggest winners of the Dutch election, though, appears to be Jesse Klaver and his Dutch Green Left party.
Earlier in the day, the 30 year-old said he believed Mr Wilders's brand of populist sentiment was losing steam.
"Geert Wilders is losing momentum in the polls. We're gaining momentum in the polls. And I think that's the message we have to send to Europe. You can't stop populism, but what I would say to all my left-wing friends in Europe, 'Don't try to fake populist. Stand for your principles. Be straight. Be pro-refugee. Be pro-European.'"
In the Dutch lower house of 150 seats, a government needs at least 76 seats to form a majority.
No single party has ever managed that, and the Netherlands has been governed by coalitions for more than a century.
This time is no different, and it may take weeks or months for Mr Rutte to negotiate a ruling coalition to govern the country.