Team USA has won the most medals at an Olympics once again.
The United States brought its overall medal haul up to 247 before Sunday's Closing Ceremony, good for a 35-plus-medal advantage over second-place China.
The gold medal race, however, is a much different story. The United States overtook China for the most gold medals on Day 11, but China drew even on Day 14 before taking a one-medal advantage on Day 15.
Get Tri-state area news delivered to your inbox.> Sign up for NBC New York's News Headlines newsletter.
It came down to the wire on Day 16 as the U.S. women's basketball outlasted France in a nail-biter.
So, when was the last time the Americans didn't win the most golds or overall medals at an Olympics? Here's what to know:
Did Team USA win the most gold medals at the 2024 Olympics?
The U.S. captured 40 gold medals at the Paris Games, which was tied with China's total of 40. Japan (20 golds), Australia (18) and France (16) rounded out the top five.
The last Summer Games where Team USA didn't top the gold medal standings was at the 2008 Beijing Olympics, where the U.S. (36 golds) finished second to China (48).
Did Team USA win the most medals at the 2024 Olympics?
The Americans racked up an Olympics-high 126 medals in Paris, 35 more than second-place China (91 medals). Great Britain placed third with 65 medals followed by France (64) and and Australia (53).
Team USA won the most total medals for an eighth straight Summer Games. The last time the U.S. didn't top the medal leaderboard was at the 1992 Barcelona Olympics, where the "Unified Team" featuring athletes from ex-Soviet republics tallied the most gold (45) and total medals (112). The U.S. finished second in both categories with 37 golds and 108 medals.
The Americans didn't have the most medals at the previous 1988 Seoul Games, either, recording the third-most golds and total podium finishes behind the Soviet Union and Germany.
What's the most gold medals won by a country at a single Olympics?
The United States won a record-setting 83 gold medals at the 1984 Los Angeles Games. That topped the previous record at a single Olympics of 80 that the Soviet Union claimed at the 1980 Moscow Games.
The U.S. led a boycott of the 1980 Olympics in the wake of the Soviet Union's invasion of Afghanistan in December 1979. Dozens of nations joined the U.S. in not participating in the Games.
What's the most medals won by a country at a single Olympics?
Team USA also is the record-holder for most total medals won at a single Olympics -- and it's a massive number. The Americans racked up a staggering 239 medals at the 1904 St. Louis Games, which marked the first Games held in the United States.
The U.S. took 78 of the 96 gold medals awarded and 239 of 280 medals overall. But there were a few reasons for that utter dominance.
The outbreak of the Russo-Japanese War and the challenge in getting to St. Louis prevented many of the best European athletes from competing. Fifteen nations and a few unattached individuals wound up competing.
The Associated Press contributed to this story.