The United States grabbed gold in both the men's and the women's four-by-100 meters medley on Saturday in the final night of races at the Olympic swimming pool.

The U.S. women's team won in three minutes 52.05 seconds, surpassing the previous world record of three minutes 52.19 set by China at the 2009 world championships in Rome. Australia took silver, with bronze going to Japan.

The men's team, with Michael Phelps, won its four-by-100 meters medley, while Japan won the silver and Australia clinched bronze.

Earlier, Chinese swimmer Sun Yang set a world record on his way to gold in the men's 1,500 meters freestyle. Sun claimed victory in 14 minutes 31.02 seconds to smash his previous world best of 14 minutes 34.14, set at the 2011 world championships in Shanghai. The silver went to Canadian Ryan Cochrane while Beijing 2008 champion Oussama Mellouli, of Tunisia, took bronze.

Sun had also won gold in the 400 meters freestyle, as well as silver in the 200 meters freestyle, and bronze in the four-by-200 meters freestyle relay.

In the first event of the evening, there was Dutch delight in the women's 50 meters freestyle event as Ranomi Kromowidjojo added to her 100 meters gold, while compatriot Marleen Veldhuis took bronze. Kromowidjojo, who also won silver with the Netherlands' four-by-100 freestyle team, won in 24.05 seconds, setting a new Olympic record.