Emmanuel Macron has won five more years as France's president after a convincing victory over rival Marine Le Pen, who nevertheless secured the far right's highest share of the vote yet.
He won by 58.55% to 41.45%, a greater margin than expected.
The centrist leader told jubilant supporters at the foot of the Eiffel Tower that now the election was over he would be a "president for all".
He is the first sitting president in 20 years to be re-elected.
Despite her loss, Ms Le Pen, 53, said her significant vote share still marked a victory.
The ideas her National Rally represented had reached new heights, she told her supporters. But far-right rival Eric Zemmour pointed out that she had ultimately failed, just like her father who preceded her: "It's the eighth time the Le Pen name has been hit by defeat."
Marine Le Pen took over the party founded by her father Jean-Marie Le Pen in 2011 in a bid to make it electable. She won more than 13 million votes on Sunday, on a platform of tax cuts to tackle the high cost of living, a ban on wearing the Muslim headscarf in public and a referendum on immigration controls.
"An answer must be found to the anger and disagreements that led many of our compatriots to vote for the extreme right," Mr Macron said in his victory speech. "It will be my responsibility and that of those around me."
More than one in three voters did not vote for either candidate. Turnout was just under 72%, the lowest in a presidential run-off since 1969, and more than three million people cast spoilt or blank votes.
Much of France was on holiday on the day of the vote, but the low turnout also reflected the apathy of voters who complained neither candidate represented them. Voters who said they were casting blank ballots told the BBC they wanted to punish the sitting president.
Anti-Macron demonstrators rallied in a number of cities, including Paris, Rennes, Toulouse and Nantes, refusing to accept the result.
In his speech Mr Macron, 44, said his government would have to "answer their choice to refuse to choose".
Far-left leader Jean-Luc Mélenchon, who was narrowly beaten by Ms Le Pen in the first round of voting two weeks before, was scathing about both candidates.
While it was good news France had refused to place its trust in Marine Le Pen, he claimed that Mr Macron had been elected with a worse result than any other president. "He floats in an ocean of abstentions, and blank and spoiled ballots."
Mr Macron's victory was welcomed by relieved European leaders, who had feared a far-right candidate offering a series of anti-EU policies.
German Chancellor Olaf Scholz was first to congratulate him, singling out their mutual challenge in responding to Russia's war on Ukraine. US President Joe Biden also said he looked forward to "close co-operation" including on supporting Ukraine.
While Mr Macron has played a key diplomatic role in the war, Marine Le Pen has struggled to shake off accusations of ties to the Kremlin. Ukraine's Volodymyr Zelensky congratulated him as a "true friend" and said he looked forward to a strong and united Europe.
UK Prime Minister Boris Johnson also welcomed his victory.
Mr Macron chose a highly symbolic venue from the French Revolution for his victory speech in the Champs de Mars.
Accompanied by his wife Brigitte and leading a group of children, he walked to the stage accompanied by the EU anthem Ode to Joy before promising supporters that "no-one will be left by the wayside". Addressing voters who had backed him to keep the far right out of power he said he would be indebted to them for years to come.
The cost of living crisis facing millions of French people became the number one issue of the election campaign, and the president's opponents accused him of arrogance and acting as a president of the rich.
However, Prime Minister Jean Castex told French radio that the president's re-election sent a strong message, when France was going through a considerable crisis involving "many divisions and a lack of understanding".
Mr Castex is now likely to be replaced in the next few days, and Mr Macron may ask Labour Minister Elisabeth Borne to take over. She refused to say whether she had been lined up to be the next prime minister, insisting that the focus had to be on dealing with people's worries about living standards. But a ministerial colleague, Clément Beaune, said the president was definitely keen on having a female prime minister.
For France's political leaders, the next task is to regroup and fight parliamentary elections in June. Mr Macron may have a majority for the moment, but defeated candidates from the first round already have the new campaign in sight and one opinion poll suggests 63% of voters want him to lose his majority.
If that happened, he would be forced into a "cohabitation" with a government led by other parties.
Mr Mélenchon has already held out the prospect of defeating the president's centrist party and becoming prime minister.
In her speech on Sunday night, Ms Le Pen told supporters that the "match is not completely over" and the risks of Mr Macron holding on to complete power were high.
For now there is no talk of a change of leadership in her National Rally party. "Everything will be rebuilt around her, she's at the head of this popular and social bloc," spokeswoman Laure Lavalette told French TV.