NEW YORK — Rafael Nadal held off a strong comeback bid to win his 19th Grand Slam title by edging Daniil Medvedev 7-5, 6-3, 5-7, 4-6, 6-4 in a thrilling U.S. Open final that lasted nearly five hours Sunday.

This one was not easy for the second-seeded Nadal. Not at all. That's because after Nadal grabbed the opening two sets and went up a break in third, Medvedev mounted a charge, shifting styles and rattling Nadal.

Medvedev broke in the last game of each of the next two sets to force a fifth. But his attempt to become the first man since 1949 to win a U.S. Open final after trailing by two sets to none came up just short.

RELATED: Bianca Andreescu beats Serena Williams in US Open final

Nadal broke to lead 3-2 in the fifth and again for 5-2. But he failed to serve out the victory there, double-faulting on break point, then couldn't convert two match points at 5-3.

At 5-4, Nadal saved a break point, and finally converted his third championship point to earn his fourth trophy at Flushing Meadows.

Add that to 12 at the French Open, two at Wimbledon and one at the Australian Open, and Nadal is now only one major trophy behind Roger Federer for the most by a man in tennis history.

RELATED: Defending champ Naomi Osaka loses to Belinda Bencic in US Open's 4th round

RELATED: Osaka consoles teary Gauff, 15, after beating her at US Open

US Open Tennis
Daniil Medvedev, of Russia, returns a shot to Rafael Nadal, of Spain, during the men's singles final of the U.S. Open tennis championships Sunday, Sept. 8, 2019, in New York. (AP Photo/Eduardo Munoz Alvarez)
AP