Michael Phelps wins 22nd Olympic gold medal

This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

RIO DE JANEIRO, BRAZIL - AUGUST 11: Michael Phelps of the United States competes Men's 100m Butterfly heat on Day 6 of the Rio 2016 Olympic Games at the Olympic Aquatics Stadium on August 11, 2016 in Rio de Janeiro, Brazil. (Photo by Adam Pretty/Getty Images)

RIO DE JANEIRO–Michael Phelps won his 22nd Olympic gold medal, and fourth of Rio Games in the 200m individual medley final on Wednesday, beating out Ryan Lochte in the swimming pool.

Lochte didn’t medal in the race, coming in fifth, but does still hold the world record for the event.

This was Phelps’ fourth straight gold during the Olympics, and he has a total of 26 medals.

Minutes earlier, Ryan Murphy, also on Team USA, won his second gold medal of Rio 2016 in men’s 200m backstroke final.

Murphy also won the 100 back, becoming the third American man in the last three Olympics to take both races. Aaron Peirsol pulled off the sweep at Athens in 2004 and Lenny Krayzelburg claimed both golds at the 2000 Sydney Games.

The United States has not lost a men’s backstroke final at the Olympics since 1992.

With reporting from the Associated Press and CNN.