London has received the Olympic flag to signal the start of its reign as Olympic host city and spark wild celebrations in the capital.
Mayor of London Boris Johnson was given the flag by IOC President Jacques Rogge at the closing ceremony in Beijing.
An eight-minute handover presentation, featuring a red double-decker bus, footballer David Beckham and musicians Jimmy Page and Leona Lewis followed.
An estimated 40,000 people celebrated the handover at a party in London.
Johnson waved the flag four times, as scripted, before handing it to an usher.
He will bring the flag back to London on Tuesday and fly it outside City Hall alongside the Paralympic flag when those Games have concluded in September.
Johnson displayed the flag at a major celebration in Beijing on Sunday for athletes, organisers, senior politicians including Prime Minister Gordon Brown, spectators and the media.
Sport is coming home. See you in London
London mayor Boris Johnson
"I'm profoundly humbled by the immense privilege I've been given today," said Johnson.
"I'm also intensely proud. Proud of the athletes who pulled in the best medal tally for decades. Proud of the people behind them who've delivered this stunning success. And proud beyond all that London is now in charge of the Olympic legacy.
"The next Games return to a country which I frequently boast has either invented or codified just about every major world sport.
"We will draw on that heritage and we will draw on our wit, flair, imagination and ingenuity to build on what we've all witnessed in Beijing and deliver a fantabulous Olympics in what I consider to be not only my home, but the home of sport.
"Sport is coming home. See you in London!"
At the celebration at London House in Beijing, Johnson told the BBC: "It was a little daunting picking up the flag, but the baton has been passed to a London administration that will deliver.
"This is not going to be a cost-cutting Olympics, but it is essential we watch every penny to deliver a Games that is value for money."
Boris Johnson 'lost in admiration'
Prime Minister Brown added: "It has been an amazing atmosphere here and in London too.
"You can see how it's going to build to 2012 - nights like this make you proud to be British."
In London thousands of people attended a party in The Mall outside the Queen's residence, Buckingham Palace.
They were entertained by musical acts including McFly, Scouting for Girls, Katherine Jenkins, The Feeling and Will Young.
Several British Olympians, including cycling's triple gold medallist Bradley Wiggins, silver medal winning triple jumper Phillips Idowu and past stars Sharron Davies, Roger Black and Kate Howey were also present.
Wiggins, who won two golds in Beijing to add to his one from Athens, said: "When I left, it was all 'recession, recession, recession' and we've come back to a country overwhelmed by Olympic success.
"There's an overwhelming sense of people being excited by the next Olympics being in London."
Idowu added: "London's going to be crazy. If we have support like this now, it's going to be amazing."
America's swimming sensation Michael Phelps, who won an record eight gold medals in Beijing, also dropped in.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.