The 27-year-old, along with his American teammates, won the men's medley relay on the final day of the swimming competition at the 2012 London games, leaving Phelps with a whooping career total of 18 gold medals and new record for fellow swimmers to attempt to break.

The golden swimmer, who has also won two silver and two bronze medals in his lifetime, concludes his Olympic career with 22 medals total—yes, that's another record.

The team, which consisted this year of backstroker Matt Grevers, breaststroker Brendan Hansen, freestyler Nathan Adrian along with fly guy Phelps, was considered a lock for the gold, though they did trail at the halfway point.

Phelps put them back in the lead on his leg of the race, keeping Team USA's record perfect in the event: The U.S. has still never lost in the history of the Olympic men's medley relay.