The final medals of the Summer Games were handed out during the ceremony according to tradition, with Uganda's Stephen Kiprotich taking gold in the marathon.
Team Great Britain made its best showing at an Olympics since 1908, taking home 29 gold medals, behind 46 for the United States and 38 for China.
The Olympic flag was handed over to Rio's mayor and the Olympic cauldron -- composed of 204 individual petals representing each country competing at the Games -- was extinguished.
Beautician charged with giving client fatal silicone butt injection
Attkisson leaves CBS News, reportedly over network's 'liberal bias'