NEW YORK -- Rafael Nadal survived a heroic Daniil Medvedev rally to claim an epic 7-5 6-3 5-7 4-6 6-4 win and a fourth U.S. Open title on Sunday, Sept. 8, moving within one Grand Slam crown of matching Roger Federer's all-time record of 20.

A routine end to the Flushing Meadows tournament looked on the cards when Nadal went two sets and a break up but the final turned into a near five-hour thriller as Medvedev staged a comeback that left the Spaniard shaken and Arthur Ashe Stadium buzzing.

"An amazing final – seemed that I had the match more or less, it has been one of the most emotional nights in my tennis career," Nadal said after watching a montage of his 19 major title triumphs on the stadium's big screen.

"Tonight everybody saw why he is the No. 4 player in the world already. The way that he was able to fight to change the rhythm of the match was just incredible.

"This victory means a lot especially because of the way the match became so difficult, so tough."

Nadal had 62 winners against 46 unforced errors in the 4-hour, 54-minute match at Arthur Ashe Stadium. Nadal previously won the US Open in 2010, 2013 and 2017.

Medvedev had 75 winners and 57 unforced errors, winning 164 total points to 177 for Nadal. He is just the second Russian man to reach the US Open final, joining Marat Safin, who won the 2000 crown by defeating Pete Sampras in three sets.

The loss was just the third in the past 23 matches for Medvedev, who was playing in his fourth straight title match. He won at Cincinnati and lost in the finals at Washington and Montreal. The loss in Montreal was to Nadal in straight sets.

Nadal weathered three break points to hold at 1-1 in the fifth set, then broke Medvedev twice in a row to take a 5-2 lead. With the chance to serve for the match, Nadal was broken, and he squandered two match points in the ensuing game on Medvedev's serve.

The 33-year-old lefthander became the second oldest U.S. Open champion in the professional era behind Australian Ken Rosewall, who was 35 when he won the title in 1970.

Not once since 1949 had a player come back from two sets down to win the U.S. Open final, but the tall Russian, cheered loudly by a crowd that booed him mercilessly earlier in the tournament, came close.

On the ropes with Medvedev looking to deliver the knockout blow, but Nadal showed once again why he is the game's greatest fighter and he lifted himself off the canvas to scrap his way to a 19th Grand Slam title.

Nadal needed three championship points to finally kill off his 23-year-old opponent and let out a mighty roar as Medvedev's final return sailed long before falling on his back to soak up the cheers.

Already King of Clay, the Spaniard has been a master of the Flushing Meadows hardcourts this tournament, dropping just one set on way to the final.

Nadal's victory also saw him join an elite club with Jimmy Connors, John McEnroe, Pete Sampras and Federer as winners of four or more U.S. Open men's singles titles in the open era.

While the women have served up four different Grand Slam winners this season, the old guard of Nadal, Federer and Novak Djokovic continue to rule the men's game with the "Big Three" having combined to win the last 12 majors.

Medvedev arrived at his first Grand Slam final as the hottest player in men's tennis, riding the momentum from reaching four consecutive finals, but it was not enough to carry him to a maiden major title.