On August 17, Phelps won his eighth gold medal in the 4×100-meter medley relay, breaking Mark Spitz's record of seven gold medals won in a single Olympic Games, which had stood since 1972.