New York - Two-time champion Rafael Nadal crashed to his earliest US Open exit in 10 years when Italy's Fabio Fognini pulled off a sensational 3-6, 4-6, 6-4, 6-3, 6-4 third-round victory.
The stunning result confirmed the sad, sudden decline of the 14-time major winner, who until Friday had won 151 Grand Slam matches when he had taken the first two sets.
Nadal will also finish the season without at least one Grand Slam title for the first time since 2004.
It was the 15th defeat of his miserable year, which has seen him beat just two top-10 players and where his best performances at the majors were quarter-final runs at the Australian and French Opens.
Fognini, the 32nd seed, becomes the first Italian in the last 16 at the US Open since Davide Sanguinetti in 2005 and will face Spain's Feliciano Lopez for a place in the quarter-finals.
"It was very tough against him," said Fognini, who smashed 70 winners, committed 57 unforced errors and saved 11-of-19 break points in his all-or-nothing assault.
"It was an incredible match to come from two sets down against Rafa who is one of the best players in the world."
Fognini has now defeated Nadal three times this year but his earlier wins were on clay in Rio and Barcelona.
"After the first two sets, I said 'OK, just concentrate, keep trying and anything can happen.' The fifth set was really difficult for both of us."
Nadal had raced into a routine two sets to love lead.
He was also a break up in both the third and fourth sets.
But the colourful, sometimes controversial 28-year-old Italian rallied with some superb shot-making as the Arthur Ashe Stadium duel ticked towards and past 01:00.
By the end of the fourth set, the statistics were telling.
Fognini had unleashed 50 winners to Nadal's 24 while the Spaniard had converted just five of 14 break points.
Fognini broke for 2-1 in the decider with Nadal looking increasingly punch-drunk, an appearance with which the watching Tiger Woods would have painfully sympathised.
Nadal, stretched to a five-setter at the US Open for only the second time in his career, came off the ropes to hit back for 2-2 with a breathtaking running forehand winner which had the crowd on its feet.
Fognini pounced again, breaking for 3-2, then cracked as the 14-time major winner clawed his way back for 3-3.
In a nail-biting finale, breaks were exchanged again with Fognini surrendering a 40-0 lead at 4-3.
The non-holding pattern continued as a seventh successive break, sealed with a backhand winner crosscourt, put Fognini back in the driving seat and serving for the match at 5-4.
This time he did not falter, claiming victory when Nadal hit a weary backhand wide.
US Open results on Friday, the fifth day of the 2015 tournament at Flushing Meadows (x denotes seeded player):
Novak Djokovic (SRB x1) bt Andreas Seppi (ITA x25) 6-3, 7-5, 7-5
Roberto Bautista (ESP x23) bt David Goffin (BEL x14) 2-6, 5-7, 6-3, 3-1 - retired
Feliciano Lopez (ESP x18) bt Milos Raonic (CAN x10) 6-2, 7-6 (7/4), 6-3
Fabio Fognini (ITA x32) bt Rafael Nadal (ESP x8) 3-6, 4-6, 6-4, 6-3, 6-4
Benoit Paire (FRA) bt Tommy Robredo (ESP x26) 7-6 (7/3), 6-1, 6-1
Jo-Wilfried Tsonga (FRA x19) bt Sergiy Stakhovsky (UKR) 6-3, 7-5, 6-2
Marin Cilic (CRO x9) bt Mikhail Kukushkin (KAZ) 6-7 (5/7), 7-6 (7/1), 6-3, 6-7 (3/7), 6-1
Jeremy Chardy (FRA x27) bt David Ferrer (ESP x7) 7-6 (8/6), 4-6, 6-3, 6-1
Serena Williams (USA x1) bt Bethanie Mattek-Sands (USA) 3-6, 7-5, 6-0
Madison Keys (USA x19) bt Agnieszka Radwanska (POL x15) 6-3, 6-2
Venus Williams (USA x23) bt Belinda Bencic (SUI x12) 6-3, 6-4
Anett Kontaveit (EST) bt Madison Brengle (USA) 6-2, 3-6, 6-0
Kristina Mladenovic (FRA) bt Darya Kasatkina (RUS) 6-2, 6-3
Ekaterina Makarova (RUS x13) bt Elina Svitolina (UKR x17) 6-3, 7-5
Roberta Vinci (ITA) bt Mariana Duque (COL) 6-1, 5-7, 6-2
Eugenie Bouchard (CAN x25) bt Dominika Cibulkova (SVK) 7-6 (11/9), 4-6, 6-3