Brazilian singer Lenine performs during the "Recognition of the Volunteers."

Hide Caption

14 of 37

Photos:Rio Olympics: Closing ceremony

From left, men's marathon silver medalist Feyisa Lilesa of Ethiopia, gold medalist Eliud Kipchoge of Kenya and bronze medalist Galen Rupp of the United States are seen on a giant screen as they stand on the podium during the closing ceremony.

Hide Caption

15 of 37

Photos:Rio Olympics: Closing ceremony

Athletes parade during the ceremony.

Hide Caption

16 of 37

Photos:Rio Olympics: Closing ceremony

Dancers perform the "Bringing Clay to Life" routine.

Hide Caption

17 of 37

Photos:Rio Olympics: Closing ceremony

Dancers perform the "Lace Making" routine.

Hide Caption

18 of 37

Photos:Rio Olympics: Closing ceremony

Athletes walk through the stadium.

Hide Caption

19 of 37

Photos:Rio Olympics: Closing ceremony

Jackie Briggs from the United States wears Olympic ring sunglasses.

Hide Caption

20 of 37

Photos:Rio Olympics: Closing ceremony

Dancers perform during the closing ceremony.

Hide Caption

21 of 37

Photos:Rio Olympics: Closing ceremony

Singer-songwriter Julia Michaels and electronic music artist Kygo perform the song "Carry Me."

Hide Caption

22 of 37

Photos:Rio Olympics: Closing ceremony

Members of Team Great Britain hold up their illuminated shoes.

Hide Caption

23 of 37

Photos:Rio Olympics: Closing ceremony

Athletes wearing illuminated shoes march during the closing ceremony.

Hide Caption

24 of 37

Photos:Rio Olympics: Closing ceremony

Athletes shield themselves from the rain.

Hide Caption

25 of 37

Photos:Rio Olympics: Closing ceremony

Dancers perform during the event.

Hide Caption

26 of 37

Photos:Rio Olympics: Closing ceremony

Athletes wear plastic raincoats.

Hide Caption

27 of 37

Photos:Rio Olympics: Closing ceremony

Athletes from Japan march during the "Heroes of the Games" segment.

Hide Caption

28 of 37

Photos:Rio Olympics: Closing ceremony

Team Great Britain celebrates during the "Heroes of the Games" segment.

Hide Caption

29 of 37

Photos:Rio Olympics: Closing ceremony

Athletes enter the stadium.

Hide Caption

30 of 37

Photos:Rio Olympics: Closing ceremony

Spectators watch the closing ceremony.

Hide Caption

31 of 37

Photos:Rio Olympics: Closing ceremony

US gymnast Simone Biles holds the American flag.

Hide Caption

32 of 37

Photos:Rio Olympics: Closing ceremony

Dancers perform in the "Olympic Wings" segment of the event.

Hide Caption

33 of 37

Photos:Rio Olympics: Closing ceremony

A dancer performs during the closing ceremony.

Hide Caption

34 of 37

Photos:Rio Olympics: Closing ceremony

A spectator takes pictures of the fireworks.

Hide Caption

35 of 37

Photos:Rio Olympics: Closing ceremony

Children sing the national anthem of Brazil.

Hide Caption

36 of 37

Photos:Rio Olympics: Closing ceremony

The International Olympic Committee flag waves in the stadium.

Hide Caption

37 of 37

Story highlights

Rio 2016 Olympics come to a close

Brazilian city "delivered history"

IOC president: "Unique legacy"

Tokyo hosts next Games in 2020

Rio de Janeiro (CNN)It was a wet, windy and wild farewell to the 2016 Olympic Games as Rio de Janeiro bowed out in a storm of samba and rain inside the Maracana Stadium.

The night began with a power cut and ended with an explosion of color and carnival, featuring a supermodel, a giant parrot and hundreds of dancers dressed as plants -- plus Japan's prime minister in an unexpected outfit.