Rafael Nadal won his 19th Grand Slam title after holding off Russian Daniil Medvedev's exhilarating fightback in one of the greatest US Open finals.
Spain's Nadal, 33, won 7-5 6-3 5-7 4-6 6-4 against the fifth seed in New York.
Nadal, seeded second, was cruising at two sets and a break up, only for Medvedev to force a decider.
But Nadal stopped his momentum to eventually clinch a thrilling victory in four hours and 51 minutes.
Nadal's victory moves him within one of Swiss rival Roger Federer's all-time leading tally of Grand Slam victories.
"It has been one of the most emotional nights in my tennis career," Nadal said. "It has been an amazing final. It has been a crazy match."
After taking his third match point, Nadal collapsed to the court in celebration, covering his face as contemplated another famous victory which epitomised all of his fighting spirit.
Medvedev, 23, trudged around the net to warmly congratulate his opponent, who looked on the verge of tears as he hid behind his sweat-soaked vest while taking rapturous acclaim.
"I just want to congratulate Rafa, a 19th Grand Slam title is something unbelievable, outrageous," said Medvedev, who looked mesmerised as he watched a video montage of Nadal's achievements.
Those lucky enough to be watching among a near 24,000 capacity crowd were regularly left open-mouthed at what they witnessed, with the majority jumping to their feet and celebrating wildly after every point, helping create an electric atmosphere on a noisy Arthur Ashe Stadium.
Medvedev had been booed by the crowd earlier in the tournament, yet heard his name loudly chanted by many as he threatened to complete an extraordinary comeback.
Ultimately it was too late as he was unable to become the first man outside Nadal, Federer and Serbia's world number one Novak Djokovic to claim one of the sport's biggest prizes since Stan Wawrinka's victory here in 2016.
Nadal, Federer and Djokovic have won the past 12 Grand Slams after the Spaniard lifted the trophy in New York for a fourth time.
Now Nadal has the chance to draw level with 38-year-old Federer, who was nine titles better off than his long-time rival in 2007, at the Australian Open in January.
Emotional Nadal outlasts latest young challenger
Despite Nadal, Federer and Djokovic being in their 30s, nobody has been able to break their stranglehold on the men's game and Medvedev was the latest to fall short after a heroic effort.
That has allowed the illustrious trio to pile on the Grand Slam victories over the past three years, livening up the race to be crowned the greatest of all time, which Federer once seemed certain to win.
Nadal, who also won his 12th French Open title earlier this year, is now within one of Federer's tally for the first time.
The magnitude of his achievements - which were shown on the big screen inside Ashe - hit the emotional Spaniard, who broke into tears while he sat in his chair and watched them.
That was a release of all the expendable emotional energy built up over the final two sets of a match which, against a less inspired opponent, he may have wrapped up much earlier.
A couple of hours before, Nadal appeared to be heading to a dominant three-set win against Medvedev, who was the first Russian man to compete in a Grand Slam final since Marat Safin at the 2005 Australian Open.
A physical contest, where both men jousted for supremacy as they tried to outlast each other in brutal rallies, seemed to be going to end in familiar fashion when Nadal broke for a 3-2 lead in the third set.
From somewhere, Medvedev summoned the strength to not only survive but threaten to produce one of the most memorable comebacks ever seen.
To borrow a line from American great Jimmy Connors, Nadal always plays "like he is broke".
And that intensity allowed him to eventually outlast the wiry Russian who, despite struggling with a quad injury during the tournament, continued to hang in even as the clock approached five hours.
Nadal's mental resilience saw him through in the end, despite Medvedev producing another fightback from 5-1 down in the decider.
A fourth victory at Flushing Meadows seals another stellar year for Nadal, who reached three Grand Slam finals in the same year for the fourth time of his incredible career.
If you are viewing this page on the BBC News app please click here to vote.
Medvedev wins over crowd with ability & humility
Medvedev has been the form player on the ATP Tour in the North American hard-court swing, leading to many tennis fans picking him out as the man most likely to threaten the 'big three' at Flushing Meadows.
This gutsy display on the biggest stage of his burgeoning career, plus the humour and humility he showed in his runners-up speech afterwards, has showcased his talents to a much wider audience.
Medvedev has had a tempestuous relationship with the New York crowd over the past fortnight, having been booed earlier in the tournament for trolling them with his provocative post-match celebrations and interviews.
But he has since looked to shake off the role of pantomime villain and apologised for his behaviour, which has included angrily snatching towels from ball people and curtly 'thanking' the American fans for jeering him.
During Sunday's final it became evident he has now endeared himself and has won them around.
Standing ovations greeted him breaking back to level during the third set and again when he held off two break points to hold for 5-4.
A loud chant of "Med-ve-dev, Med-ve-dev, Med-ve-dev" broke out for the first time after he held serve to take a 6-5 lead in the third set and continued through to the end of the match.
That recognition was testament to the ability and character which has marked out the lanky Russian, set to rise to fourth in the world on Monday, as a star over the past year.
Another prolonged ovation greeted him as collected his runners-up prize.
"I know early in the tournament I said something in a bad way, and now I want to say it in a good way, it is because of your energy I am here," he said.
After losing in the Washington and Montreal finals in August, Medvedev claimed the title in Cincinnati and continued his winning streak in New York to reach his first major final.
The Russian is only the third man - after Ivan Lendl and Andre Agassi - to reach all four of these finals in the Open era.
Those exertions, plus the efforts he needed to keep Nadal at bay in the physical first set, looked to have caught up with him, Nadal breaking for a 4-2 lead which was enough to seal the second set, and again for a 3-2 lead in the third.
But after immediately wiping that out to level, Medvedev took an anxious Nadal's serve to claw a set back.
That was only the start of the story as the pair slugged it out for another two hours before Medvedev finally succumbed.
Analysis
BBC tennis correspondent Russell Fuller
That is now 12 Grand Slam titles in a row which have been won by Nadal, Federer and Djokovic. Their domination of the sport began in 2005, and does not show any signs of abating.
But the way Medvedev played should give the younger breed real heart. There are three other top-10 players who are the same age or younger than the 23-year-old Russian.
Medvedev played with passion, power, resilience and great touch at the net, and in the fourth set Nadal looked increasingly stressed.
And yet he came through once again, for the fourth time at the US Open, and on a surface which has so often disagreed with his body.
Surely no-one who saw Nadal limp away from last year's Australian Open quarter-final with a leg problem, and from last year's US Open semi-final with a knee injury, could begrudge him one of the most emotional triumphs of his career.
'One of the greatest finals' - Reaction
39-time Grand Slam champion Billie Jean King: One for the ages! Absolutely incredible #USOpen Men's Singles Final with the indomitable @RafaelNadal winning his fourth US Open title. Congratulations, Rafa!
2017 US Open champion Sloane Stephens: Wowwww that was unreal tennis - talk about leaving it all on the court. What a battle. Congrats Rafael Nadal & you too Daniil Medvedev
Former US Open finalist Greg Rusedski: What we have just witnessed is one of the greatest US Open men's finals in the history of tennis. Daniil Medvedev was incredible to fight back from two sets down and a break. Rafael Nadal showed us why he is the greatest competitor we have every seen on a tennis court. Slam No. 19!
Tennis great Rod Laver: Congratulations Rafael Nadal, a gutsy victory to claim your 19th major, fourth US Open crown and second Slam title this year after the French. Stand tall friend, you are closing in, it was a privilege to present this trophy to you tonight.