Defending champion Rafael Nadal survived an epic US Open quarter-final confrontation to defeat battling ninth seed Dominic Thiem 0-6, 6-4, 7-5, 6-7 (4/7), 7-6 (7/5) and reach the semi-finals for the seventh time.
In a gripping 4-hour 49-minute contest which concluded at 2.04 a.m. on Wednesday, world number one Nadal won through to keep his bid for a fourth title in New York and 18th Grand Slam crown on track.
However, the 32-year-old was fortunate to triumph on another hot and humid night at Flushing Meadows, 24 hours after Roger Federer had been dumped out of the tournament by John Millman.
After suffering a first set 'bagel', Nadal had to battle back from breaks in the third and fourth sets before seeing off the first top 20 player he had faced at the US Open since 2013.
"I suffered, that's the right word," said Nadal after playing his longest ever match at the tournament.
"I said to Dominic I am sorry. He's a great guy, a close friend who will have many more opportunities to win the big titles.
"He has a great attitude and is a great fighter."
In a dramatic final set, Nadal saw five break points come and go before Thiem went long with a smash on the first match point.
It was his 58th unforced error on a night when he sent down 18 aces and fired 58 winners.
The semi-final will pit Nadal against third seed Juan Martin del Potro for the second successive Grand Slam.
At Wimbledon, Nadal came back from two sets to one down to win in five in a quarter-final which stretched to almost five hours.
Thiem broke three times in a 24-minute first set, handing Nadal just his third 'bagel' at a Grand Slam.
The top seed won just seven points in the opener.
- 'Wake up' -
"I told myself 'wake up'," said Nadal.
Nadal then recovered from being broken as he served for the second set in the ninth game with an immediate break back to level the contest.
Thiem then grabbed a 4-3 lead in the third which he stretched to 5-3 but then it was his turn to crack as Nadal raced away with three games to claim a two sets to one lead.
Thiem was 4-2 ahead in the fourth set before he was again reeled in and he was two points from defeat in the 12th game.
But he took the tiebreaker before Nadal just proved the steadier of the two in the final set decider.
Del Potro reached the semi-finals for the third time, defeating John Isner 6-7 (5/7), 6-3, 7-6 (7/4), 6-2 and ending American hopes of a first men's champion at the event since 2003.
Del Potro dropped his first set of the tournament against 11th seed Isner, who was playing in his maiden quarter-final at his home Slam.
Despite that, the 29-year-old was never broken in the 3 hour 31 minute match where Isner unleashed 26 aces but was undone by 52 unforced errors compared to Del Potro's 14.
"To reach the semi-final again here in New York in my favourite tournament is very special to me," said Del Potro after his eighth win over Isner in 12 meetings.
"To play John in these kind of matches, it's like an epic.
"We fought the whole match and I survived with my serve which was key."
Del Potro admitted the 33-degree temperatures proved a real challenge with the 10-minute heat rule allowing the players a welcome respite after the third set.
"I had a shower, lay on the table and I didn't want to come back again. It was too hot to play tennis," he joked.
Isner said he needed to change his shirt 11 times.
Isner paid tribute to Del Potro.
"He's maybe playing some of the best tennis ever right now for him," said the American.
Wednesday's quarter-finals will see two-time champion Novak Djokovic face Millman, the world number 55.
Marin Cilic will face Kei Nishikori in a repeat of the 2014 final won by the giant Croat.