After 16 days of competition, the 2012 London Olympics came to an end on Sunday with the closing ceremony.

The United Stated finished the Games in first with 46 gold medals and 104 medals in all. China was behind the U.S. with 88 total and Russia came in third with 82. The host country, Great Britain, accumulated 29 gold medals.

Some of Britain's greatest artists performed on the final night. Older bands, as well as new ones, performed in front of the thousands in London. The Who and One Direction took the stage. There was also a Spice Girls reunion.

Here are some pictures from the festivities that took place during the opening ceremonies: