12 August 2012
Last updated at 20:15
Team GB's 29th and final gold was won by boxer Anthony Joshua. He beat the defending Olympic champion in the super-heavyweight division.
Team GB's Samantha Murray won Team GB's very last medal of the Games, in the modern pentathlon. She fenced, swum, rode, shot and ran her way to silver.
Double-Olympic champion Mo Farah (far right) joined another sporting legend, footballer Pele (far left) and Prime Minister David Cameron (centre right) at a summit to discuss world hunger at Number 10.
The final day of the Games saw athletes in the men's marathon run past some of London's best known landmarks, including Ben Big and the Palace of Westminster.
Spectators young and old were out in force on London's streets, trying to get the best view of the athletes in action.
Crowds 10-deep in places turned out to watch the 26-mile event on a glorious summer's day. The marathon was won by Stephen Kiprotich of Uganda in two hours and eight minutes.
Team GB's medallists posed for group photos on the roof of their headquarters in Stratford, east London.
Mayor of London Boris Johnson acted as London tour guide for actor and former governor of California, Arnold Schwarzenegger. He took him on a ride across the Thames on a cable car.
Legacy has been a key theme on the final day of the 2012 Olympics and Lord Coe, newly appointed as the UK's Olympics legacy ambassador by the prime minister, will have the job of inspiring the next generation of athletes.
One of the other 15 events on the final day of the Games was the rhythmic gymnastics, which was won by Russia - their fourth successive Olympic title in the event.
Meanwhile, there has been universal praise for Olympic volunteers and IOC president Jacques Rogge said "many, many athletes" had written history.