Gretchen Walsh ended her first Olympics on Sunday by adding one more gold medal to her collection.
Walsh was part of Team USA's women's 4x100 medley relay along with Regan Smith, Lilly King, and Torri Huske.
The Americans set a new world record, finishing with a time of 3:49.63.
Australia took the silver and China won the bronze.
Get top local stories in Connecticut delivered to you every morning. Sign up for NBC Connecticut's News Headlines newsletter.
Walsh, who grew up in Greenwich, swam the butterfly leg of the medley with a split time of 55.03. That time is faster than the world record time of 55.18 for the women's 100m butterfly Walsh set in June during the Olympic trials in Indianapolis.
The medley relay wasn't the only event for Walsh on Sunday.
Just an hour earlier, she swam in the final of the women's 50m freestyle. She came into the final having posted a 24.17 in her semifinal heat on Saturday. It was the second fastest time of any of the swimmers in the semifinal.
Paris 2024 Summer Olympics and Paralympics
Watch all the action from the Paris Olympic and Paralympic Games live on Peacock
On Sunday, Walsh appeared to briefly have the lead in the sprint of one length of the pool, but Sweden's Sarah Sjoestroem, the world and Olympic record holder, pulled ahead and finished first with a time of 23.71.
Meg Harris, of Australia, took the silver and China's Zhang Yufei won the bronze.
Walsh finished fourth with a time of 24.21.
Walsh will leave Paris with the gold medal in the women's 4x100 medley relay, a gold medal in the mixed 4x100 medley relay, and silver medals in the women's 100m butterfly and the women's 4x100 freestyle relay.