Phelps goes out on top as USA men, women take 4x100 medley relay golds

Michael Phelps and the United States swim team closed out their Rio Olympics in the only way imaginable.

Gold.

Phelps put the United States ahead to stay on the butterfly leg of the men's 4x100 medley relay before Nathan Adrian finished the race off, giving the most decorated athlete in Olympic history his 23rd career gold medal.

If that was the end, and Phelps insists it is, what a way to go out.

He would finish his career with 28 medals overall, having won five golds and a silver at these games.

Two-time gold medalist Ryan Murphy put the Americans out front with a world-record split on the backstroke -- it counts since he was leading off -- but Britain surged ahead on the breaststroke with its own world-record holder, Adam Peaty. 

Phelps dove into the pool in second place. 

He wouldn't be for long.

On the return lap, Phelps powered through the water with his whirling butterfly stroke, surging ahead of James Guy to pass off a lead to the anchor Adrian.

It wasn't in doubt after that. Adrian pulled away on the freestyle to win in an Olympic-record time of 3 minutes, 27.95 seconds.

Kathleen Baker, Lilly King, Dana Vollmer and Simone Manuel led the American triumph. The winning time was 3:53.13.

Australia earned silver, while Denmark took bronze.

Read more HERE