The finale was a formality, more a coronation than a contest. Michael Phelps headed into the retirement the only way imaginable - with another gold medal.
Reclaiming the lead with his trademark butterfly stroke, the one seen in his Olympic debut as a 15yearold in Sydney a dozen years ago, Phelps won the 18th gold of a mind-boggling career in the 4x100-metre medley relay Saturday.
When it was done, Phelps hugged his teammates - Matt Grevers, Brendan Hansen and Nathan Adrian - before heading off the deck for the final time in his suit. He waved to the crowd and smiled, clearly at peace with his decision to call it a career.
And what a career it was!
Phelps retires with twice as many golds as any other Olympian, and his total of 22 medals is easily the best mark, too. He can be quite proud of his final Olympics as well, even though there were times he had trouble staying motivated after winning a record eight gold medals at the Beijing Games four years ago.
Bouncing back from a disappointing first race in London, a fourth-place finish in the 400 individual medley, Phelps wound up with more medals than any other swimmer at the games: four golds and two silvers.
Sounds familiar. Grevers had the Americans in front on the opening backstroke leg of the relay, but Kosuke Kitajima put Japan slightly ahead going against Hansen in the breaststroke. Not to worry, not with Phelps going next.
He surged through the water in the fly, handing off a lead of about a quarter of a second to Adrian for the free-sytle anchor. The Americans won going away in 3 minutes, 29.35 seconds, just off their own Olympic record from Beijing. Japan held on for silver in 3: 31.26, with Australia taking the bronze in 3: 31.68.
The U.S. men had never lost the medley relay at the Olympics, and they weren't about to now on the final night of swimming at the Olympic Aquatics Centre, on the final night for such a momentous athlete.
How momentous? The governing body of swimming, FINA, summoned Phelps back to the deck for one more award - a silver trophy commemorating his standing as the most decorated Olympian ever. A fitting gesture, though a more appropriate colour would have been gold.
Then, as if 22 medal ceremonies over the last three Olympics weren't enough, Phelps made one more victory lap around the pool, even stopping off at the podium, climbing to the top step again and posing with his final award.
Phelps wasn't the only star of the night. Missy Franklin capped off a brilliant Olympic debut by helping the U.S. take gold in the women's 400 medley relay - with a worl-drecord time, no less.