Justin Gatlin tore up Usain Bolt’s farewell script as he stole world 100m gold with the run of his long and controversial career.
Bolt was left with only a bronze in his final individual 100m race.
The 35-year-old Gatlin, twice banned for doping, came through almost unnoticed in lane seven in 9.92 seconds, with Coleman’s 9.94 holding off the greatest sprinter of all time.
Despite struggling for fitness and form in his valedictory season, Bolt had still been favourite to secure his 20th global gold.
Bolt produced his great miracle to beat him that night in the Bird’s Nest, but in the stadium where he won 100m Olympic gold in 2012, he could not provide the perfect ending to a perfect career.
Gatlin, Olympic 100m champion in 2004 and double world champion in 2005, had been booed every time he went to his blocks in these championships, his doping past making him the cartoon villain of a troubled sport.
After his second positive test, for testosterone in 2006, he avoided a life ban after cooperating with the authorities, accepting an eight-year suspension that was then reduced to four on appeal.
That left him free to return to the track, and 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 to initial silence.
The stadium took a little revenge of their own, chanting, "Usain Bolt! Usain Bolt!" as the result began to sink in.
With Coleman out fastest, he was always chasing, yet while we have grown used to seeing him first close down the more explosive starters and then pull away from them, this time the old magic was not there when he called upon it.
World champion Justin Gatlin: "I tuned it out [the booing] through the rounds and stayed the course. I did what I had to do. The people who love me are here cheering for me and cheering at home.
"It is Bolt’s last race. It is an amazing occasion. We are rivals on the track but in the warm-down area, we joke and have a good time. The first thing he did was congratulate me and say that I didn’t deserve the boos. He is an inspiration."