World-class athletes from all over the UK have helped Team GB achieve their most successful Olympics for 100 years.
Britain has won a total of 47 medals, including 19 gold, to finish fourth in the overall medals table behind China, America and Russia.
They've done so well they've even beaten the medal targets they were set for the London Olympics in 2012!
Millions of people have been gripped by Britain's Beijing successes, including Prince William's gran, the Queen.
The Queen has been following Team GB's success in Beijing
She congratulated Team GB's Beijing heroes and said their hard work would inspire London in the run-up to it hosting the next Games.
"To all the participants, and to everyone who has supported them so well, I send my warmest congratulations," she said.
"As a nation we now look forward to holding the Olympic Games in London in 2012."
Team GB's biggest medal wins have come in cycling, sailing, swimming and athletics.
They include cyclist Chris Hoy, who won three gold medals, and swimmer Rebecca Adlington who won two gold medals, as well as setting a new world record in the 800m freestyle.
London will officially become the next Olympic city during Beijing's closing ceremony on Sunday afternoon.
The official handover of the Olympic flag will take place during the three-hour ceremony, which will be shown on 30 giant screens across the UK.