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: Oxford High School Shooting Activates US Emergency Blood Reserve

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: Prosector Rules Fireworks-Related Death Of NHL Goalie Kivlenieks Accidental

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: How Does The Coronavirus Mutate? It's Just A Series Of Mistakes

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.