PARIS — The European political establishment breathed a heavy sigh of relief Sunday, as French voters elected pragmatic centrist Emmanuel Macron as president over right-wing challenger Marine Le Pen, who threatened to upend Europe’s existing order, according polling agency projections.

Macron won with 65.5% of votes against 34.5% for Marine Le Pen. Le Pen called Macron to congratulate him on his victory.

Her National Front party had threatened to curb immigration, particularly for Muslims, pull France out of the European Union and return the country to the French franc currency — moves that would have caused political and economic upheaval not only in Europe, but the rest of the world.

Macron, 39, is a former investment banker and economy minister who strongly supports the European Union. He is France's youngest ever president.

His supporters gathered outside the Louvre museum Sunday for a victory party.

Macron’s victory, coming on the heels of defeats for right-wing populist candidates in Austria and the Netherlands, appears to blunt the anti-establishment fervor sweeping Europe amid a backlash against economic stagnation, a flood of migrants pouring into their countries and a string of nerve-rattling terror attacks.

"We are in a dynamic where countries are pulling inward, into their national identities,” said Bruno Cautres, a political analyst at the Center for Political Research at Sciences Po, a university in Paris. "Populist political forces in those countries undeniably managed to build on this era of great upheaval. The climate in France is rather a climate that promotes Le Pen's discourse."

The final day of the campaign on Friday was marked by a hacking attack and document leak targeting Macron. En Marche! said real documents were mixed with fake ones. The perpetrators remain unknown.

Macron and Le Pen defeated nine other presidential candidates in the first round of voting on April 23. President François Hollande opted not to run for re-election because of his low popularity ratings. Unemployment stands at 9.6%, and Hollande has struggled to prevent terrorism or curb government corruption.

Anand Menon, a professor of international relations at King's College London, said Le Pen and Macron have one important similarity.

"Neither candidate comes from an established political party that's been successful in the National Assembly," he said, referring to France's powerful Parliament, which holds elections in June. "It raises issues around how the political system will function with a president who doesn't control the National Assembly."

French security was on high alert. A few days before last month's vote, a man inspired by the Islamic State shot and killed a police officer on the Champs-Élysées. A security alert Sunday forced Macron’s campaign to evacuate the courtyard outside the Louvre museum where he plans to celebrate election night.

"I don't like either of the two contenders. Both of them want to reduce the number of public workers," said Parisian Abdelmjid Lahmouid, 42, a computer technician originally from Morocco. "Between a rock and a hard place, we must choose."