With the screaming crowd on its feet, The U.S. Team won the race in 3:27.95. Great Britain won the silver with 3:29.24. Australia took the bronze with a 3:29.93.
As they won the race, the men wrapped each other in bear hugs and looked over at their families. Phelps’ fiancée, Nicole Johnson, wiped away tears.
From left: Cody Miller, Michael Phelps and Ryan Murphy
Dmitri Lovetsky / AP
Julio Cortez / AP
The win capped off an impressive Olympics for all four men.
Here in Rio, Phelps added 6 medals – 5 gold and 1 silver – to his astonishing tally of 28 Olympic medals. Adrian picked up 4 – 2 gold and 2 bronze. Murphy picked up 3 gold medals, and Miller picked up a gold and a bronze.
For more of PEOPLE’s Olympic coverage, pick up our collector’s edition,The Best of the Games, on sale now.
So is the era of Michael Phelps over?
The 31-year-old has repeatedly said that these are his last Olympic games – a sentiment that he repeated in his post-race interview.
“I’m just ready for something different,” he told NBC. “My swimming career might be over, but I have the future ahead of me. It’s not the end of a career, [it’s] the beginning of a new journey.”
As the National Anthem played for Phelps’ final medal, the athlete was seen breaking out into a huge smile and tearing up.