The London Olympics closed in a blaze of music and colour. Olympics President Jacques Rogge praised the Games as "happy and glorious" before the sporting spectacular was brought to a close in a three-hour ceremony rounded out with a performance from British rock band The Who.
"Through your commitment to fair play, your respect for opponents, and your grace in defeat as well as in victory, you have earned the right to be called Olympians," Rogge said. "These were happy and glorious Games."
The Spice Girls, George Michael, Brazilian football legend Pele and a cast of more than 4,000 entertained a packed crowd of 80,000 at Olympic Stadium, the focal point of a Games which has borne witness to an extraordinary fortnight.
Record-breaking sprinter Usain Bolt and swimmer Michael Phelps lit up Olympic Park, a former industrial site, and Jessica Ennis led an unexpectedly high number of British champions who kept fans' excitement at fever-pitch.
The United States topped the medals table with 46 golds, eight ahead of China, while Britain had 29 -- their best since 1904. It was the first Games where every team had at least one female athlete.
After 16 full days of competition, 302 Olympic titles were handed out and 46 world records were broken. More than seven million fans came out to watch Olympic events, and Bolt's 200m win generated a record 80,000 tweets a minute.
"Today was the closing of a wonderful Games in a wonderful city. We lit the flame and we lit up the world," said Games chief Sebastian Coe.
Prime Minister David Cameron received congratulations from US President Barack Obama, who called him to praise the organisation and the performance of the British team.
"We reminded ourselves what we can do and, yes, we demonstrated that you should never ever count Team GB down and out," Cameron said earlier.
Cameron said the Games had reflected the best of Britain's multicultural make-up, taking the example of Mo Farah, the winner of the men's 10,000m title who went on to claim gold in the 5,000m on Saturday.
Farah came to Britain as a refugee aged eight after spending his early years in Somalia and Djibouti.
"It's a Britain where a boy born in Somalia, Mo Farah, can come here, seize opportunities, and run his way into the nation's heart," Cameron said.
"It's a Britain where we cheer ourselves hoarse not just for Team GB but for Team Jamaica or, as people have just done on the Mall, Team Uganda," he added, referring to the winner of Sunday's men's marathon Stephen Kiprotich.
"Over the past couple of weeks, we have looked in the mirror and we like what we have seen as a country," he said.
Britain's newspapers on Monday reflected the country's new-found pride but also betrayed a tinge of sadness that the Games were over.
"Thanks, it's been a blast," said the Daily Telegraph's front page, while the Guardian bade "Goodbye to the Glorious Games".
"No one is as surprised as the hosts that this fraught and complex festival of striving should have gone so well," said The Times, calling the Games a "great exhibition of competence, creativity, athleticism and sportsmanship."
The final day of sport saw 15 medals decided, with the United States' Dream Team wrapping up victory over Spain in the basketball final as the Americans cemented their place on top of the medal table ahead of China.
The last day started in traditional style with the men's marathon, with Kiprotich delivering only Uganda's second ever Olympic gold medal in a race that finished in the shadow of Buckingham Palace.
Kiprotich timed 2hr 08min 01sec on the spectacular course around the streets of central London, with two-time defending world champion Abel Kirui claiming silver in 2:08.27.
Anthony Joshua handed Britain the perfect end to the Olympic boxing tournament with his super heavyweight triumph to win Britain's 29th gold.
Teenager Robeisy Ramirez joined the long list of Cuban Olympic ring kings with a victory in the flyweight final over Mongolia's Tugstsogt Nyambayar.
"The moment I heard I won I fell on the floor because it was overwhelming. I am 18 years old and I am already an Olympic champion," said the teenager.