Michael Phelps brought the curtain down on one of sport's most storied careers with a dynamite relay swim to give himself 23 Olympic gold medals and declared it a perfect finale.
The American, far and away the most decorated athlete in Olympic history, finished with five golds and a silver in Rio after signing off in dramatic style, coming to the rescue in the 4x100m medley final.
Turning back the clock in his fifth and final Games, Phelps produced a blistering third leg of butterfly to restore his team's lead and tee up victory after Britain's Adam Peaty had threatened to gatecrash his party.
"Getting off the bus and walking to the pool tonight, I pretty much felt myself starting to crack," confessed Phelps.
"Last warm-up, last time putting on a suit, last time walking out in front of people, representing my country -- it's insane, a lot better than it was four years ago," added the 31-year-old, who retired after the 2012 London Games before returning for one last hurrah.
"This is how I wanted to finish my career. I've lived a dream come true. Being able to cap it off with these Games is just the perfect way to finish."
The hullabaloo over the Phelps's farewell overshadowed the achievement of the women's 4x100m medley relayers as they captured their country's 1,000th Olympic medal, according to the United States Olympic committee.
The country's first medal dates back to 1896, when James Connolly won triple jump gold.
Even that statistic seemed to pale against the irrepressible Phelps -- and likewise Ryan Murphy's leadoff backstroke leg, which set a new 100m world record of 51.85.
"No matter what country you swim for you're indebted to Michael Phelps," said Murphy after winning his third Rio gold.
"He's opened a lot of doors for all of us. It was awesome to be in that race with him."
Nathan Adrian brought the Americans home to preserve their unbeaten Olympic record in the event and give them a 16th swimming gold from 32 events for the week, matching their haul in London four years ago.
An Olympic record time of 3:27.95 was lost in the emotion after the race as Phelps tearfully saluted the crowd while his beauty queen fiancee Nicole Johnson looked on sobbing as she cradled baby son Boomer.
Icing on the cake
Britain took silver, thanks largely to a breaststroke leg from Peaty that was quicker than the world record he set to win individual gold, but won't count as it came in the middle of a relay.
Australia claimed bronze, but the memory of sharing the pool with Phelps in his final race could last longer than the glow of their relay gongs.
The women's quartet of Kathleen Baker, Lilly King, Simone Manuel and Dana Vollmer made history, but were made to work.
The Americans, who failed to medal at last year's world championships, had looked in peril when two-time doping violator Yulia Efimova gave Russia the lead on the breaststroke.
But Vollmer's butterfly averted a crisis and Manuel brought them home in 3:53.13 almost two seconds ahead of Australia with Denmark taking bronze.
"A 1,000th gold for team USA is a nice number," said Manuel. "It's really special. Just sharing that with three other women, it's the icing on top of the cake."
Pernille Blume, who swam Denmark's anchor leg, earlier won gold in the women's 50m free, inflicting more heartbreak on Australia's Cate Campbell after her 100m flop.
Blume won in 24.07 with Manuel adding silver to her surprise 100m gold with a time of 24.09 and Aliaksandra Herasimenia of Belarus, the London runner-up previously banned for doping, taking bronze.
"It's possibly the greatest choke in Olympic history," said 100m world record holder Cate, who finished fifth.
"It hurts. I almost needed someone to give me a Heimlich manoeuvre a couple of nights ago."
Campbell returned around 20 minutes later for the 4x100 medley relay but despite a fine anchor leg could not prevent the United States retaining their Olympic title.
World champion Gregorio Paltrinieri blazed to gold in the men's 1,500m in the absence of defending champion Sun Yang, who crushed out in the heats blaming a cold, the Italian smashing a quality field to win in 14:34.57.
AFP
Sun Aug 14 2016
Phelps, far and away the most decorated athlete in Olympic history, finished with five golds and a silver in Rio after signing off in dramatic style, coming to the rescue in the 4x100m medley final. -Filepix
Who is Prabowo Subianto, incoming president of Indonesia?
A wealthy ex-general with ties to Indonesia's popular outgoing president and its dictatorial past, looks set to be its next leader.
Iran's supreme leader says Hamas leader's death will not halt 'Axis of Resistance'
The "Axis of Resistance", built up with years of Iranian support, includes Hamas, the Lebanese Hezbollah group, the Houthi movement in Yemen, and various Shi'ite groups in Iraq and Syria.
Putin says Russia willing to seek compromises between Iran and Israel
Russia is ready to help seek compromises between arch-foes Israel and Iran, President Vladimir Putin said on Friday, saying these would be difficult but possible.
What proposals will Russia push at the BRICS summit?
The proposal is also to establish a BRICS reinsurance company to allow uninterrupted shipment of goods and key commodities between members.
Indonesia's free meals plan in the spotlight as Prabowo readies for office
Prabowo calls the programme one of the main drivers of economic growth, eventually set to add an estimated 2.5 million jobs.
Astro AWANI's revamped English news website, AWANI International, launches on Oct 21
Astro AWANI's revamped English platform delivers in-depth global news and expert analysis to keep you informed on key developments.
Israeli strikes kill 33 people in Jabalia refugee camp in Gaza, medics say
Residents of Jabalia said Israeli tanks had reached the heart of the camp after pushing through suburbs and residential districts.
Liam Payne's ex-partner calls for media restraint after 'painful' death
Cheryl Tweedy used her statement to urge the media to remember they had a seven-year-old son, Bear, who could read the reports.
Analysts: Indonesia's strong MoF leadership team to boost investor confidence
Sri Mulyani Indrawati as head of Indonesia's Ministry of Finance is expected to instil confidence among investors.
Biden offers both a carrot and a stick to Israel as his term nears an end
Israel has frequently resisted US advice and has caused political difficulties for the Biden administration.
Putin says BRICS will generate most of global economic growth
Russian President Vladimir Putin will host a summit of the group in the city of Kazan on Oct. 22-24.
ISIS Malaysia's perspective of Budget 2025
An excellent rakyat-centric budget under the overarching principle of a caring and humane economy.
Budget 2025: Record increase in STR, SARA aid initiatives
The government will provide a significant boost to the Sumbangan Tunai Rahmah (STR) and Sumbangan Asas Rahmah (SARA) initiatives next year.
Budget 2025: EPF contributions to be made mandatory for foreign workers – PM Anwar
The government plans to make it compulsory for all non-citizen workers to contribute to the Employees Provident Fund (EPF).
What policies to expect from Indonesia's new President Prabowo
Prabowo will be open to foreign investment, his aide has said, such as by offering investors management of airports and sea ports.
Budget 2025: Govt allocates RM470 mil to empower women's participation in PMKS
The Women's Leadership Apprenticeship Program will be intensified as an effort to produce more female corporate personalities.
Israel sends more troops into north Gaza, deepens raid
Residents of Jabalia in northern Gaza said Israeli tanks had reached the heart of the camp, using heavy air and ground fire.
Indonesia ramps up security ahead of Prabowo's inauguration
Prabowo Subianto will be sworn in as Indonesia's president on Sunday with Vice President-elect, Gibran Rakabuming Raka, also taking office.
Immediate allocation of RM150 mil for local authorities, DID to tackle flash floods
Datuk Seri Anwar Ibrahim said this allocation is intended to address the recent flash floods that hit the capital and several major towns.
Budget 2025: Sabah, Sarawak to continue receiving among highest allocations - PM
Sabah and Sarawak continues to be prioritised under Budget 2025, with allocations of RM6.7 billion and RM5.9 billion respectively.