The London 2012 Olympics have ended with a spectacular musical closing ceremony and the official handover to the next host city, Rio de Janeiro.
The three-hour show featured some of the biggest names of British pop from decades past, including the Spice Girls and George Michael.
The official Games flag was handed to the mayor of Rio before the flame at the Olympic Stadium was extinguished.
At the close of the ceremony, watched in the stadium by the 10,000 athletes and 80,000 spectators, the flame was extinguished in dramatic fashion.
The US topped the medal table with 46 golds - their best performance in an overseas Game.
There were 44 world records and 117 Olympic records during the 16 days.
US swimmer Michael Phelps became the most decorated Olympian of all time as he increased his career tally to 22 medals.