Associated Press

After 12 years and 22 Olympic medals, the most decorated Olympian, Michael Phelps, is retiring. Here's a look back at his medal-winning performances.

2004 Summer Olympics in Athens, Greece, Aug. 13-29, 2004
Mark Baker, Associated Press

Gold
100 m butterfly
51.25 (Olympic record)

2004 Summer Olympics in Athens, Greece, Aug. 13-29, 2004
Thomas Kienzle, Associated Press

Gold
200 m butterfly
1:54.04 (Olympic record)

2004 Summer Olympics in Athens, Greece, Aug. 13-29, 2004
Mark J. Terrill, Associated Press

Gold
200 m individual medley
1:57.14 (Olympic record)

2004 Summer Olympics in Athens, Greece, Aug. 13-29, 2004
Mark J. Terrill, Associated Press

Gold
400 m individual medley
4:08.26 (World record)

2004 Summer Olympics in Athens, Greece, Aug. 13-29, 2004
Mark Baker, Associated Press

Gold
4 x 200 m freestyle relay
7:07.33 (U.S. record)

2004 Summer Olympics in Athens, Greece, Aug. 13-29, 2004
Associated Press

Gold
4 x 100 m medley relay
3:30.68 (World record)

2004 Summer Olympics in Athens, Greece, Aug. 13-29, 2004
Mark J. Terrill, Associated Press

Bronze
200 m freestyle
1:45.32 (U.S. record)

2004 Summer Olympics in Athens, Greece, Aug. 13-29, 2004
David J. Phillip, Associated Press

Bronze
4 x 100 m freestyle relay
3:14.62

2008 Summer Olympics in Beijing, China, Aug. 8-24, 2008
Mark Baker, Associated Press

Gold
100 m butterfly
50.58 (Olympic record)

2008 Summer Olympics in Beijing, China, Aug. 8-24, 2008
Mark J. Terrill, Associated Press

Gold
200 m butterfly
1:52.03 (World record)

2008 Summer Olympics in Beijing, China, Aug. 8-24, 2008
Greg Baker, Associated Press

Gold
200 m freestyle
1:42.96 (World record)

2008 Summer Olympics in Beijing, China, Aug. 8-24, 2008
Mark Baker, Associated Press

Gold
200 m individual medley
1:54.23 (World record)

2008 Summer Olympics in Beijing, China, Aug. 8-24, 2008
Mark J. Terrill, Associated Press

Gold
400 m individual medley
4:03.84 (World record)

2008 Summer Olympics in Beijing, China, Aug. 8-24, 2008
David J. Phillip, Associated Press

Gold
4 x 100 m freestyle relay
3:08.24 (World record)

2008 Summer Olympics in Beijing, China, Aug. 8-24, 2008
Thomas Kienzle, Associated Press

Gold
4 x 200 m freestyle relay
6:58.56 (World record)

2008 Summer Olympics in Beijing, China, Aug. 8-24, 2008
Mark J. Terrill, Associated Press

Gold
4 x 100 m medley relay
3:29.34 (World record)

2012 Summer Olympics in London, United Kingdom, July 27-Aug. 12, 2012
Jae C. Hong, Associated Press

Gold
100 m butterfly
51.21

2012 Summer Olympics in London, United Kingdom, July 27-Aug. 12, 2012
Daniel Ochoa De Olza, Associated Press

Gold
200 m individual medley
1:54.27

2012 Summer Olympics in London, United Kingdom, July 27-Aug. 12, 2012
Matt Slocum, Associated Press

Gold
4 x 200 m freestyle relay
6:59.70

2012 Summer Olympics in London, United Kingdom, July 27-Aug. 12, 2012
Julio Cortez, Associated Press

Gold
4 x 100 m medley relay
3:29.35

2012 Summer Olympics in London, United Kingdom, July 27-Aug. 12, 2012
Michael Sohn, Associated Press

Silver
200 m butterfly
1:53.01

2012 Summer Olympics in London, United Kingdom, July 27-Aug. 12, 2012
Mark J. Terrill, Associated Press

Silver
4 x 100 m freestyle relay
3:10.38