In typical Phelpsy fashion, his final race was a win. Not only that, but along with his team of Cody Miller, Nathan Adrian and Ryan Murphy they set a new Olympic record in the Men's 4x100 medley relay.
As he stepped onto the podium for the final time, his emotions got the better of him as his fiancee, baby son and family watched on in tears.
The MailOnline reported him as saying: "Getting off the bus walking into the pool tonight, I almost felt myself starting to cry.
"Last warm-up, last time putting on a suit, last time walking out in front of thousands of people representing my country. It's insane.
"A lot better than what it was four years ago. This is how I wanted to finish my career, the way I wanted to. I held back a little bit on the podium but there were some that were popping down."
View image on Twitter
Prior to his final race, he took to Facebook Live to give his fans a behind the scenes look at what was going on with him and his team.#MichaelPhelps #USA #Gold RT @NBCOlympics: We're not crying. You're crying. #ThankYouPhelps pic.twitter.com/pbhHLSzACX— heykim (@heykim) August 14, 2016
Fair play to you, Michael.
A real legend of swimming.