It has taken only three years for Emmanuel Macron to rise from being an unknown government adviser to being elected France's youngest head of state since Napoleon.
Several months before his 40th birthday, the centrist has turned a stale establishment upside down while eschewing the wave of economic and political nationalism that helped Britain to vote for Brexit and Donald Trump to be elected US president.
His election represents a long-awaited generational change in French politics where the same faces have dominated for years.
He will be the youngest leader in the current Group of Seven (G7) major nations and has elicited comparisons with youthful leaders past and present, from Canadian Prime Minister Justin Trudeau to former British Prime Minister Tony Blair and even President John F Kennedy in the United States.
Many attribute Mr Macron's rise to a deep yearning for a fresh face, coupled with a rare message of optimism in a country that has long been obsessed with national decline.
Macron: Le Pen's supporters have expressed an anger, I respect them. But they have no reason to choose the extremes
— Tony Connelly (@tconnellyRTE) May 7, 2017
"His campaign has been like group therapy - to convert the French to optimism," said writer Michel Houellebecq.
Since striking out on his own in August 2016 after only two years as a minister, he has tapped into widespread disenchantment to broadcast a strong anti-establishment message.
Despite having attended France's most prestigious schools, making a lot of money by brokering a $10bn corporate acquisition, and serving in a Socialist government under President Francois Hollande, Mr Macron has vowed to shake up the system that he comes from.
"France is blocked by the self-serving tendencies of its elite," he told supporters at a rally in the southern town of Pau. "And I'll tell you a little secret," he added, lowering his voice: "I know it, I was part of it."
Born in Amiens, in the northern rustbelt, to a family of doctors, he describes in his campaign book 'Revolution' an idyllic childhood spent "in books, a little removed from the world".
There, at age 15, he met his future wife Brigitte, who was his drama teacher - 24 years his senior and married with children. Their unusual relationship has fuelled intense magazine coverage.
After school, he moved to Paris and attended the Sciences-Po and the Ecole Nationale d'Administration academies, the traditional training ground of the French elite. In parallel, he worked as a research assistant to the philosopher Paul Ricoeur.
#Macron brings his wife Brigitte on stage with him #Presidentielle2017 #France2017 #Louvre #Paris pic.twitter.com/gSaLFhYeoj
— Lisa Pereira (@lisa_pereira) May 7, 2017
After finishing near the top of his class, he joined the civil service, before a four-year stint working in mergers and acquisitions for the investment bank Rothschild.
Helping to broker Nestle's acquisition of Pfizer's baby food division earned him a small fortune.
After Rothschild, he joined Mr Hollande's staff in the Elysee in 2012 and it was not long before he became economy minister.
Mr Macron said his ambition is to bridge the left-right divide that has long dominated French politics.
Yet when he quit the government last August to build up the political movement he had founded only four months earlier, many saw him as a shooting star - at best.
"He won't last five minutes with the bad guys in the campaign," one of his predecessors at the finance and economy ministry scoffed privately last November.
But with the ruling Socialists in disarray and the centre-right's candidate, Francois Fillon, mired in a financial scandal, Mr Macron emerged in pole position.
Mr Macron has continued to confound opponents and pundits by building up huge grassroots support and winning endorsements from defecting centre-left and centre-right politicians.
Far-right National Front candidate Marine Le Pen, whom he defeated after an acrimonious runoff campaign, scornfully dubbed him a "smirking banker" in a rancorous TV debate, painting him as the candidate of "globalisation and Uberisation gone wild".
In a final put-down, when Ms Le Pen attempted to interrupt his summing-up, Mr Macron told her: "You stay on TV. I want to be president of the country."