American Michael Phelps won the 18th and final Olympic gold medal of his career with a win in the 4x100m medley relay, before heading into retirement.
The 27-year-old swam the third butterfly leg at London’s Aquatics Centre to help the United States past Japan in three minutes 29.35 seconds.
Australia took the bronze, with Great Britain in fourth.
Phelps ends his career with 22 medals in total, 18 of them gold, from four Olympic Games.
“It’s tough to put into words right now, but I finished my career how I wanted to,” said an emotional Phelps. “Through the ups and downs of my career I’ve still been able to do everything that I’ve ever wanted to accomplish.
“I’ve been able to things that no-one else has ever been able to do and this is one of the funnest ways to finish it, in a relay.”