It all came at a price tag of $14 billion, three times the original estimate. But nobody wanted to spoil the fun with such mundane concerns, at least not on this night.
Britons, who had fretted for weeks that the games would become a fiasco, were buoyed by their biggest medal haul since 1908 — 29 golds and 65 medals in all.
The United States edged China in both the gold medal and total medal standings, eclipsing its best performance at an Olympics on foreign soil after the Dream Team narrowly held off Spain in basketball for the country's 46th gold.
"It's been an incredible fortnight," said Coe, an Olympic champion in his own right.
While the games may have lacked some of the drama and grandeur of the Beijing Olympics in 2008, there were many unforgettable moments.
Jamaican sprinter Usain Bolt became an Olympic legend by repeating as champion in both the 100-meter and 200-meter sprints. Michael Phelps ended his long career as the most decorated Olympian in history.
British distance runner Mo Farah became a national treasure by sweeping the 5,000- and 10,000-meter races, and favorite daughter Jessica Ennis became a global phenomenon with her victory in the heptathlon.
Female athletes took center stage in a way they never had before. American gymnast Gabby Douglas soared to gold, the U.S. soccer team made a dramatic march to the championship. Packed houses turned out to watch the new event of women's boxing. And women competed for Saudi Arabia, Qatar and Brunei for the first time.
And then there was Oscar Pistorius, the double-amputee from South Africa running on carbon-fiber blades, who didn't win a medal but nonetheless left a champion. And sprinter Manteo Mitchell, who completed his leg of the 4x400 relay semifinal on a broken leg, allowing his team to qualify and win silver.
"It was a dream for a sports-lover like me," Rogge said of the two weeks of competition.
Coe said the closing ceremony didn't aim to be profound, not even the irreverent romp through British history offered by Danny Boyle's $42 million spectacle on opening night.
The theme for the close, Coe said, could be summed up in three words. "Party. Party. Party."
In a switch from opening night and what appeared to be a concession to its vocal critics, NBC decided to stream the ceremony live online, in addition to broadcasting it during prime time.
London organizers tried to keep the ceremony under wraps, but photographs of their rehearsals, in an old car plant in east London, made the British papers almost daily.
The show was to include performances of 30 British hit singles from the past five decades — whittled by Gavin from a list of 1,000 songs.
The soundtrack ranged from Edward Elgar, composer of the "Pomp and Circumstance" march, to The Kinks and "Waterloo Sunset." Frontman Ray Davies performed the 1960s song, a love letter to London.
While creators of the opening ceremony could rehearse for weeks inside the stadium, Gavin and his team had less than a day between the end of track and field competition and Sunday's ceremony before 80,000 people.
Even as spectators filed in early Sunday evening, performers did final run-throughs, including actor-comedian Russell Brand in a top hat aboard a psychedelic magical mystery tour bus. Jets of steam shot up from the stage as dancers in warmup clothes shimmied and shook.
Britons seemed exhausted and exhilarated after two glorious weeks in the world's spotlight, and just months after the country celebrated the queen's 60th year on the throne with a magnificent pageant and street parties.
Some at Olympic Park acknowledged happy surprise that not much had gone wrong, and so much had gone right.
"I was a bit worried we wouldn't be able to live up to it," said Phil Akrill of Chichester. "But walking around here it's just unbelievable."
Even non-Brits were proud of their adopted homeland.
"It's just been a really nice thing to see," said Anja Ekelof, a Swede who now lives in Scotland. "The whole country has come together."
Associated Press writers Fergus Bell and Jill Lawless contributed to this report.
Follow Paul Haven on Twitter: http://www.twitter.com/paulhaven.
- Class of 2015: Utah high school athletes with...
- Christian Stewart writes final chapter on...
- Morning links: Fox Sports discusses why OU...
- Dick Harmon: Sonny Detmer's bloodline about...
- Mendenhall's coaching tenure at BYU: A decade...
- Jazz not expected to be a major player (or...
- Amy Donaldson: Former BYU QB Jake Heaps'...
- Jazz in talks with German center Tibor...
- Amy Donaldson: Former BYU QB Jake... 49
- Morning links: Fox Sports discusses why... 45
- Morning links: New BYU commit's late... 31
- Dick Harmon: BYU's retired AD Glen... 27
- Mendenhall's coaching tenure at BYU: A... 15
- Jazz not expected to be a major player... 13
- Dick Harmon: Sonny Detmer's bloodline... 12
- Utah State wide receiver/kick returner... 10