The final score...published at 21:37
And here it is, the final medal table.
Chins up, Australia.
SILVER - Boxing: GB's Joyce beaten by France's Yoka in super heavyweight final
Team GB finish on 67 medals ahead of China in second place on the medal table
USA beat Serbia in men's basketball final to win the 306th and last gold of the Games
Volleyball: Brazil's men beat Italy to win gold - Brazil's seventh of the Games
Athletics: Kenya's Eliud Kipchoge wins marathon gold, GB's Hawkins ninth
Rio closing ceremony and handover to Tokyo 2020 from 00:00
Stephan Shemilt and Matthew Henry
And here it is, the final medal table.
Chins up, Australia.
#bbcrio2016
Paul Lewis: How to end the Olympics? A giant version of the Cycling Track points race with every athlete from the games on a bike.
Men's final
Anna Thompson
BBC Sport in Rio
So the USA wrap up men's basketball gold - the 15th time they've won it out of 19 Olympic finals.
That's the end of the action and what a fantastic Games it has been for the hosts Brazil - recording their most successful Olympics - and Team GB too, who became the fist post host to win more medals than their home Olympics with 67.
It's time for the BBC interactive crew in Rio to sign off after 17 days of action and 306 medal events. It's been a blast. Obrigada!
Men's final
There you have it. The 306th and final gold medal of the 2016 Olympic Games has been won by the United States men's basketball team.
They have wiped the floor with Serbia, winning the final 96-66.
The US finish with 45 golds in total.
Men's final
One minute left. The last medal of the 2016 Olympic Games is about to be won...
#bbcrio2016
Charlotte Turner: Post-Olympic Blues
Abbie Grisman: I already miss it!
Afghanistan have got a volunteer. I think they only had three athletes in their team, so maybe they've all gone home.
Greece - Ekaterini Stefanidi
I've just been sent the list of all 207 flag-bearers for the closing ceremony. If I published them at one a minute from now on, it would take us past the start.
#bbcrio2016
Si Ashby: End Olympics with combined showjumping, basketball & trampolining! Skelton slams the winning 3 pointer from 30 feet on Big Star
Men's final
Anna Thompson
BBC Sport in Rio
Safe to say the USA are bossing this final, 79-43 up after the third quarter.
The crowd are happy and participating in every "cam" going. We've had flag cam, kiss cam, bongo cam and muscle cam. Basketball fans sure know how to have a good time at Games!
#bbcrio2016
T Skepper: End the Olympics with Tug Of War as the final medal. Straight knockout. All competitors to have competed in an earlier sport.
Then again, given the way GB dominates in the velodrome, that theory could put an end to track cycling.
Men's final
Three quarters of the way through this contest, otherwise known as the American coronation.
The US are 79-43 up on Serbia.
The States have won every gold medal bar one since 1992. The women have won all bar one since 1984.
When they come to decide which sports are in the Olympics, should they take into account the possibility for one nation to dominate?
#bbcrio2016
Nick Littlewood: How to end the games with a bang? Get the disco horses to re-enact Saturday Night Fever...
Sir Steve Redgrave
Five-time Olympic rowing champion on BBC TV
It is so difficult to pick a moment. What is special about the Olympics is the 28 sports coming together.
The Brownlees were outstanding but my moment was Maddie Hinch saving the penalty in the first half of the hockey.
#bbcrio2016
Joodles: How to end the Olympics? Massive game of British Bulldog, obviously! Last one standing wins the world!
More thoughts on my end-of-Games super-event. I think I might have the combat and ball sports in first. Win those and you get a little head start in the mega-relay.