The Rio Olympic Games has ended with a spectacular carnival inspired closing ceremony and the official handover to 2020 hosts Tokyo.
The colorful ceremony, lasting almost three hours, celebrated Brazil's arts and was held in a wet Maracana stadium.
International Olympic Committee chief Thomas Bach said over the last 16 days a united Brazil inspired the world, in difficult times for all of us, with its irresistible joy for life."
11,303 athletes from 206 nations and a refugee team competed at the Rio Olympics.
One of the biggest cheers of the night came when Japan's Prime Minister Shinzo Abe appeared dressed as computer game character Super Mario, rising out of a huge green pipe in the stadium.
The United States of America topped the Rio Olympics medal tally with 46 gold, second was Great Britain with 27 gold and third was China with 26 gold.
The highlight of the Rio Olympics has been Michael Phelps who won his 23rd gold medal and also Usain Bolt who made it triple triple with 3 gold medals.
The United States of America topped the Rio Olympics medal tally with 46 gold, second was Great Britain with 27 gold and third was China with 26 gold.
The sport may have finished but the #Rio2016 Closing Ceremony starts now!! #OlympicGames pic.twitter.com/dSaXkguaAs
— Rio 2016 (@Rio2016_en) August 21, 2016
