13 August 2012
Last updated at 00:55
The London 2012 Olympics have ended with a spectacular musical closing ceremony and the official handover to the next host city, Rio de Janeiro.
At the close of the ceremony. the 204 petals of the Olympic cauldron descended to ground level and the flame was extinguished in dramatic fashion.
As fireworks exploded above the stadium, the Who performed My Generation and the venue became a sea of red, white and blue.
As part of the ceremonial handover, the Olympic flag was lowered and then handed from London Mayor Boris Johnson to IOC president Jacques Rogge, who in turn handed it to the mayor of Rio, Eduardo Paes.
The Brazilian national anthem, recorded by the London Philharmonic Orchestra, was played, and the stadium was transformed into the green and yellow colours of Brazil's flag.
The handover was followed by an eight-minute segment celebrating Rio's mix of cultures, music and dance, bringing a carnival atmosphere to the proceedings.
The packed show featured some of the biggest names of British pop, including the Spice Girls who sang Spice Up Your Life from the top of five London black cabs.
The crowd were taken through a celebration of British eccentricity, with comedian Russell Brand singing Pure Imagination from Roald Dahl's Willy Wonka and the Chocolate Factory and the Beatles' I am the Walrus from the top of a psychedelic bus. Brand was followed by DJ Fatboy Slim aka Norman Cook.
The voice of the late Freddie Mercury echoed around the Stadium, singing Queen's Bohemian Rhapsody, as part of the section of the show entitled A Symphony of British Music.
Traditionally, the closing ceremony is a chance to celebrate what the athletes have achieved, with Olympics supremo Lord Coe describing it as a time to "party, party, party".
There was a riot of colour as the athletes entered the stadium, with four-time Olympic gold medallist sailor Ben Ainslie carrying the British flag.
The opening performance was a journey through a day in the life of the capital city.
Director Kim Gavin had described the event as a "mashed-up symphony".
Big Ben chimed to start the finale, as a cityscape in the shape of a Union Jack was unveiled.
Emeli Sande, the Pet Shop Boys, Madness and Ray Davies were among the first artists to perform.
Boy band One Direction also appeared.
A fanfare from the Household Division Ceremonial State Band announced the arrival of Prince Harry, who represented the Queen, and Mr Rogge.
The crowd was led in a resounding version of the national anthem, and the union flag was carried into the stadium and was raised by representatives of the Army, Royal Navy and Royal Air Force.