Caleb Ewan's first career Tour de France stage win came by the narrowest of margins as the Australian edged out Dylan Groenewegen by the width of a wheel rim in Toulouse.
The 25-year-old Australian, riding the Tour for the first time, came around Groenewegen after the Dutchman launched his sprint with 200 metres of the 167km stage 11 from Albi remaining and took it by inches.
Ewan, who has stage wins in the Giro d'Italia and La Vuelta to his name, had made no secret of the fact a Tour victory was what he craved the most.
"I can't believe it," he said. "I've been close in the last four sprints and my team never lost faith in me and I never lost faith in my sprinting. I knew if everything came together I could be fastest on the day and today I showed that...
"Since childhood there is no other race I've dreamt of winning. Watching in Australia, the Tour seems so far away – I can't believe I'm even here but to win a stage is a dream come true."
Yellow jersey holder Julian Alaphilippe and defending champion Geraint Thomas finished safely in the pack to ensure there was no change at the top of the general classification, in which Alaphilippe leads Thomas by 72 seconds as the race heads to the Pyrenees on Thursday.
Thomas' Ineos team-mate Egan Bernal finished 13th on the stage to stay a further four seconds behind Thomas in third place.
After Tuesday's rest day and Monday's chaotic finish in crosswinds, Wednesday's stage was a much more sedate affair as the peloton followed the Tarn west out of Albi.
A four-man breakaway including serial escapee Stephane Rossetto of Cofidis was kept on a short leash, with their advantage never quite reaching three minutes, a gap which began to tumble as Toulouse came into view.
Threatened crosswinds never materialised in the finale, although there was a little late drama as a crash held up Movistar's Nairo Quintana and Trek-Segafredo's Richie Porte, who needed five kilometres to be paced back onto the pack.
However, Porte's team-mate Giulio Ciccone – who wore the yellow jersey for two days after finishing second on stage six to La Planche des Belles Filles – was not so lucky as he limped home with injuries that saw him lose his 10th place in the general classification.
Wanty Gobert's Aime De Gendt went solo from the breakaway with 10 kilometres left, pulling more than 40 seconds clear, but he was reeled in on the long drag up into town as the sprint trains moved to the fore.
Just as De Gendt had made his move, another spill in the peloton saw a key member of Ewan's Lotto-Soudal lead-out train Jesper De Buyst land in a ditch, but Ewan would instead surf the wheels.
Mike Teunissen, winner of the opening stage in Brussels, led out his Jumbo-Visma team-mate Groenewegen but after he pulled off, Ewan had the power to come around the Dutchman in the nick of time.
The next moves in the battle for yellow could come on Thursday's 209.5km stage 12, which takes the riders from Toulouse to Bagneres-de-Bigorre via climbs of the Peyresourde and the Hourquette a'Ancizan.