LONDON — Michael Phelps ended his career with another gold as the United States won the medley relay at the London Olympics on Saturday.

Phelps leaves the sport with a record 18 golds and 22 medals overall. At these games he won four golds and two silvers.

READ MORE: What Is The Best Sunscreen For Me? Environmental Working Group Releases Annual Guide

In the final swimming event of the eight-day meet, the Americans clocked 3 minutes, 29.35 seconds.

Matt Grevers led off in the backstroke leg, Brendan Hansen swam the breaststroke, Phelps did his usual butterfly leg and Nathan Adrian was the anchor in freestyle.

READ MORE: Parole Denied For Don Miller Who Killed 4 Women In Lansing In The 1970s

The Americans trailed when Phelps dove in, but he pushed them in front.

Japan touched in 3:31.26 to take the silver medal and Australia finished in 3:31.58 to take bronze.

MORE NEWS: Michigan Court Seeks More From Whitmer About Abortion Ban Challenge

Copyright 2012 by STATS LLC and The Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and The Associated Press is strictly prohibited.