Justin Gatlin won his second world 100m title 12 years after his first to ruin eight-time Olympic champion Usain Bolt’s final individual race.
Bolt, who retires after next week’s 4x100m relay, was third behind American Gatlin, who clocked 9.92 seconds, and Christian Coleman (9.94).
Bolt’s 9.95 seconds equalled his best effort of 2017 but he always trailed.
Gatlin – banned twice for doping – was booed before the race and celebrated wildly, holding his hands to his ears.
The 35-year-old – in lane eight – was behind his compatriot Coleman from the blocks but wore down the margin in the closing 20 metres to take his first major title since 2005.
Great Britain’s Reece Prescod – who qualified for his first major final with an impressive time of 10.05 in the semi-final – finished seventh in 10.17.
Gatlin, double Olympic champion in Athens in 2004, had been booed every time he went to his blocks at these championships, his doping past making him the cartoon villain of a troubled sport.
He was to have his revenge in spectacular style, standing tall and putting a furious finger to his lips as his win stunned the capacity crowd.
The crowd at the stadium took a little revenge of their own, chanting, “Usain Bolt! Usain Bolt!” as the result began to sink in.
But this was a deserved victory in its execution if not its formation, a last hurrah for a man that many in the sport wished no longer had the chance to compete.
Ayana adds world gold as Manyonga takes long jump
Olympic champion and world record holder Almaz Ayana put a problematic season behind her to storm to 10,000m gold.
Ayana, who set that staggering record a year ago in Rio, threw in a decisive injection of pace at halfway to finish 45 seconds clear of her Ethiopian compatriot Tirunesh Dibaba in 30 minutes 16.33 seconds, with Kenya’s Agnes Tirop taking bronze.
Luvo Manyonga completed a fairytale triumph in the long jump as his second-round leap of 8.48m took gold from the USA’s Jarrion Lawson by four centimetres, as the winner’s fellow South African Ruswahl Samaai was third.
Manyonga, a former crystal meth addict, celebrated in style after going one better than his silver in Rio.
Lithuania’s Andrius Gudzius, with a final round of 67.89m, took discus gold from Sweden’s Daniel Stahl and the USA’s Mason Finley.
Britain’s Laura Muir qualified impressively for Sunday’s 1500m final as she was second in her semi-final.
Muir will be joined by compatriot Laura Weightman, who came storming through down the home straight.