The Rio Olympics ended in a blaze of colour with an exuberant closing ceremony on Sunday as Tokyo took up the baton promising to host the best Games yet in 2020.
After a rollercoaster fortnight which mixed off-field hitches with compelling sporting drama, Olympics chief Thomas Bach hailed a "marvellous" Games in the Brazilian city.
"These were marvellous Olympic Games in the marvellous city!" said Bach, as he declared the Games closed and the Olympic flame was extinguished.
"These Olympic Games are leaving a unique legacy for generations to come. History will talk about a Rio de Janeiro before and a much better Rio de Janeiro after the Olympic Games."
Just a few hours earlier, the United States basketball squad won the last gold of the Games, boosting their country's place on top of the medals table.
At the closing ceremony, thousands of fans and athletes donned ponchos on a wet and windy night for a colourful festival of Brazilian culture and music with bursts of spectacular fireworks.
Smiling and waving athletes danced into the Maracana stadium taking selfies as Rio's 16-day Summer Games closed ahead of the 2020 Olympics in Tokyo.
Japan's Prime Minister Shinzo Abe made a comical cameo as Nintendo video game character Super Mario as Tokyo set out its store for 2020.
"The Japanese government will... work hard so it will be the best Olympics ever," Abe said as he met Japanese medal-winners earlier.
Security scares and logistical problems were a feature of South America's first Olympics, held against the backdrop of Brazil's political and economic crisis.
Swathes of empty seats caused disquiet but the Games also witnessed the last hurrahs of both Usain Bolt and Michael Phelps, who both lived up to their billing.
Bolt sealed the sprint 'triple triple' in his final Games, reaching a record-equalling nine gold medals with his third consecutive 100m, 200m and 4x100m sweep.
Swim legend Phelps took his unmatched career haul to 23 gold medals with another five in Rio -- plus a silver, after his loss to former childhood fan Joseph Schooling.
Brazil came late to the party but the country celebrated long and loud when Neymar won a gold-medal penalty shoot-out against Germany to erase memories of their 7-1 World Cup semi-final humiliation in 2014.
- 'Sporting superpowers' -
On a sodden final day, Kenya's Eliud Kipchoge, 31, shone with his seventh win in eight marathons, timing 2hr 8min 44sec to win by more than a minute.
The USA's basketball 'Dream Team' of NBA stars claimed the 306th and final gold of the Games with a crushing 96-66 win over Serbia.
With the basketball win, America matched its tally of 46 golds from London four years ago to lead the medals table from Britain, who sealed surprise second place ahead of China with 27 golds to 26.
"We are one of those sporting superpowers now," beamed UK Sport chief executive Liz Nicholl.
But there was also controversy as Mongolia's Chagnaadorj Usukhbayar became the sixth weightlifter in Rio to fail a drugs test.
And police seized passports, phones and computers in a raid on the Irish Olympic office, following the arrest of Irish International Olympic Committee member Patrick Hickey over an alleged black market tickets scam.
Brazil added a final flourish as they beat Italy 3-0 to win the men's title in volleyball, one of the country's most popular sports.
French fighter Tony Yoka won a split-decision against Britain's Joe Joyce to take the super-heavyweight title in boxing.
Switzerland's world champion Nino Schurter, third in Beijing and second in London, competed his ascent of the podium by winning the men's mountain bike competition.
And there were furious scenes when a Mongolian coach stripped down to his underwear to protest a decision against wrestler Ganzorig Mandakhnaran.
AFP
Mon Aug 22 2016
Japanese Prime Minister Shinzo Abe holds a red ball during the closing ceremony of the Rio 2016 Olympic Games at the Maracana stadium in Rio de Janeiro on August 21, 2016. / AFP PHOTO / PHILIPPE LOPEZ
Record November snowfall blankets Seoul
A heavy snow warning was issued in the northeastern districts of Seoul, including Nowon, Seongbuk and Dobong.
China state media warn Trump against mutually destructive tariff war
Donald Trump is threatening Beijing with far higher tariffs than the 7.5%-25% levied on Chinese goods during his first term.
Malaysia to address South China Sea issues As ASEAN Chair next year
Malaysia is committed to resolving disputes in the South China Sea constructively through diplomatic channels and appropriate forums.
Malaysia, Russia to strengthen ties, focusing on digitalisation, energy, trade opportunities via ASEAN, BRICS
Alexander Stuglev says Russia could offer Malaysia cutting-edge solutions in cybersecurity, software development and telecommunications.
Israel-Hezbollah ceasefire takes effect, civilians head back to south Lebanon
Streams of cars began heading to southern Lebanon, which borders Israel, after the ceasefire.
IPIC case: Najib, Mohd Irwan granted DNAA for six CBT charges involving RM6.6 billion
The judge made the decision after allowing the DNAA application submitted by the lawyers representing Najib and Mohd Irwan, respectively.
Trump team signs transition agreement with Biden White House after delays
The move will allow Trump's team to coordinate directly with federal agencies and access documents.
Pakistani forces launch midnight raid on ex-PM Imran Khan's supporters, local media reports
At least six people, including four paramilitary soldiers, were killed before the Tuesday night raid was launched.
Australia moves closer to ban social media for children
Australian parliament's lower house passes the bill, even as Google and Meta press the government to delay the legislation
Prospect of Lebanon ceasefire leaves Gazans feeling abandoned
Months of US-backed Arab mediation have yet to secure a ceasefire between Israel and Hamas to end the war in Gaza.
Four bodies recovered from capsized tourist boat off Egypt's Red Sea coast
The boat, the Sea Story, capsized on Monday near the Sataya Reef while carrying 31 tourists and 13 crew on a multi-day diving trip.
UTP introduced a first-of-its-kind Bachelor of Integrated Engineering with Honours
UTP has proudly unveiled Malaysia's first multidisciplinary engineering programme.
Biden to push for Gaza ceasefire after Israel-Lebanon deal
The US "will make another push, with Turkey, Egypt, Qatar, Israel and others, to achieve a ceasefire in Gaza," says Joe Biden.
JPS issues flood warning, 30 villages in Pasir Puteh expected to be inundated
Flooding is expected near Sungai Semerak, Pasir Puteh, affecting low-lying villages within 5km of the river, according to PRABN.
What Trump 2.0 could mean for trade, migrants, climate change and electric cars
Here's a summary of the policies Donald Trump has said he will pursue when he takes office on Jan. 20.
UN says Taliban detained journalists over 250 times in Afghanistan since takeover
The Taliban-led foreign ministry denies having arrested that number of journalists and added that those arrested had committed a crime.
TikTok becoming app of choice for criminals promoting investment scams - Police
Many users continue to be tricked and scammed even though police have repeatedly issued warnings about scams proliferating on social media.
MOE’s mental health screening identifies students with emotional challenges
Deputy Minister of Education says, those identified with severe emotional issues undergo screening twice a year.
Israel, Hezbollah agree to ceasefire brokered by US and France, to take effect Wednesday
Israel will gradually withdraw its forces over 60 days as Lebanon's army takes control of territory near its border with Israel to ensure that Hezbollah does not rebuild its infrastructure there.
'No one will win a trade war,' China says after Trump tariff threat
Donald Trump says he would impose the tariffs until China stops the flow of illegal drugs, particularly fentanyl, into the United States.