After a gruelling 17 days, Rio de Janeiro cast aside early struggles with empty venues, security scares and a mysterious green diving pool to throw a huge Carnival-like party. Samba dancers, singers, drummers and a giant plumed macaw float mixed with hundreds of athletes in the storied Maracana stadium while a final volley of fireworks lit up the night sky.

Brazilians came to the closing ceremony happy, many wearing the canary yellow jersey of the nation's sports teams, having won two late gold medals in their two favourite sports, men's soccer and volleyball.

But Sunday served up tough weather conditions for such a big party. High winds buffeted the Maracana, power briefly went out in the upper part of the stadium, and rain drenched performers and athletes as they entered the ceremony, many with medals hanging around their necks. To the beat of traditional Brazilian music, Olympians danced and waved their countries' flags to celebrate their place on the world's premier sporting stage.

In the last of 306 medal ceremonies, International Olympic Committee President Thomas Bach draped the gold around the neck of Kenya's Eliud Kipchoge, winner of the men's marathon earlier in the day.


The city handed over the Olympic flag to Tokyo, site of the 2020 Summer Games, and Japanese Prime Minister Shinzo Abe appeared in the stadium dressed as popular video game character Mario, tunnelling from Tokyo to Rio.

Bach declared the Rio Games closed and expressed hope that they had left a lasting mark on the metropolitan area of 12 million people. "These Olympic Games are leaving a unique legacy for generations to come," he said. "History will talk about a Rio de Janeiro before and a much better Rio de Janeiro after the Olympic Games." In a final symbolic act, the Olympic flame that had burned since Aug. 5 was then extinguished in a downpour of artificial rain.

In the midst of it worst economic recession since the 1930s, Brazil's opening and closing ceremonies relied more on the country's unique talents and natural beauty and less on expensive technology. On Sunday, there was an ode to the white-clad lacemaking ladies and the forro music of the Northeast that sparked waves of pride among Brazilians.

One of the more stunning moments of the ceremony focused on the ancient art found in the Serra da Capivara National Park - a UNESCO World Heritage site in northeastern Brazil featuring cave paintings, some more than 25,000 years old. But the beauty was betrayed by Brazil's tough times. Just this week, the foundation that maintains the park said it could no longer do so because of a lack of funding.

For all the troubles before and during the Games, Rio will surely be remembered for great sporting moments. There was the remarkable comeback of American swimmer Michael Phelps, who won five golds to reinforce his distinction as the most decorated Olympian of all time. Jamaica's Usain Bolt drew down the curtain on his brilliant Olympic career by securing a sweep of the sprint titles for a third successive Games. And American gymnast Simone Biles, the U.S. flag bearer in the closing ceremony, kicked off her Olympic run by tying the record of four gold medals in a single Games.

Latest News from Sports News Desk