Michael Phelps brought the curtain down on his incredible swimming career with his 23rd Olympic gold medal — and his fifth of the Rio Games — as the United States beat Britain and Australia to win the men's 4x100-meter medley relay on Saturday.

Phelps, who has insisted this week that he will not return to compete at the Tokyo Games in 2020, teamed up with Ryan Murphy, Cody Miller and Nathan Adrian to win the final race of the Rio Games swimming competition, touching the wall in a new Olympic-record time of 3 minutes, 27.95 seconds.

"Just walking to the pool tonight, I think everything started coming out and my emotions really started surfacing," said Phelps, who retires with an all-time best total of 28 Olympic medals.