France's future in the European Union seems a little more certain, with the pro-European centrist candidate Emmanuel Macron being elected president, defeating the far-right candidate, Marine Le Pen.
Here are some reactions from world leaders following Sunday's election.
* Prime Minister Malcolm Turnbull congratulated Macron, tweeting: "We will build even stronger ties between our two great nations."
* US President Donald Trump tweeted: "Congratulations to Emmanuel Macron on his big win today as the next President of France. I look very much forward to working with him!"
* Outgoing French President Francois Hollande said: "His big victory confirms that a very large majority of our fellow citizens wanted to unite around the values of the Republic and show their attachment to the European Union" the statement said.
* British Prime Minister Theresa May's office said: "The Prime Minister warmly congratulates President-elect Macron on his election success. France is one of our closest allies, and we look forward to working with the new president on a wide range of shared priorities."
* German Chancellor Angela Merkel's spokesman tweeted in French and German: "Congratulations Emmanuel Macron. Your victory is a victory for a strong united Europe and for the Franco-German friendship."
* President of the European Commission Jean-Claude Juncker said in a letter: "I am delighted that the ideas you defended of a strong and progressive Europe, which protects all its citizens, will be those that you will carry into your presidency in the debate about the history of Europe."
* European Council President Donald Tusk tweeted: "Congratulations to the French people for choosing liberty, equality and fraternity over the tyranny of fake news."
* Scottish First Minister Nicola Sturgeon said: "Vive La France. Congratulations to new President, Emmanuel Macron on his decisive victory over the hard right."
* Former British Prime Minister Tony Blair said: "I congratulate Emmanuel Macron on a superlative victory which is great news for France and Europe. His campaign and the substantial majority he achieved, shows that the centre ground is alive and kicking and the place where elections can still be fought and won by progressive politics."
* Italian Prime Minister Paolo Gentiloni tweeted: "Hurray President #Macron A hope is haunting Europe," turning on its head a reference to the Communist Manifesto.
* Former Italian Prime Minister Matteo Renzi said: "The victory of Macron represents an extraordinary point of hope for France and for Europe."
* Dutch right-wing populist Geert Wilders congratulated Le Pen despite her defeat in the French presidential elections. He tweeted: "Well done anyway ... millions of patriots voted for you! You will win next time - and so will I!"
* London Mayor Sadiq Khan said: "The French people have chosen hope over fear and unity over division."
* Nigel Farage, former leader of Britain's UKIP party and leading Brexit campaigner, said: "Macron offers five more years of failure, more power to the EU and a continuation of open borders. If Marine sticks in there, she can win in 2022."
© PAA 2017
Image: Emilio Morenatti