Roger Federer has been knocked out of the US Open in the fourth round by world number 55 John Millman.
The 37-year-old Swiss had prioritised winning a sixth title at Flushing Meadows but was beaten 3-6 7-5 7-6 (9-7) 7-6 (7-3) in three hours 35 minutes.
It is the first time Federer has lost to a player ranked outside of the top 50 at the US Open.
Australian Millman will play two-time champion Novak Djokovic in his first Grand Slam quarter-final on Wednesday.
Millman, 29, is the only unseeded player left in the last eight of the men's draw.
"I'm probably in a little bit of disbelief," said Millman.
"I have so much respect for Roger and everything he's done for the game. He's been a hero of mine."
Second seed Federer, bidding for a record-extending 21st Grand Slam, missed set points in the second and third sets before capitulating in the fourth-set tie-break.
Millman had never beaten a top-10 player before but suddenly found himself with five match points against arguably the greatest male player of all-time.
After Federer rallied to save two of the them, Millman completed victory at almost 01:00 local time in a humid New York when the out-of-sorts Swiss lumped a forehand long.
It was Federer's first defeat in 41 matches at the US Open against a player ranked outside the top 50.
Federer, usually so calm and collected, was flustered throughout most of the match as he complained about crowd noise and became unusually vocal during some tense moments.
"It was very hot and one of those nights where I felt I couldn't get air," he said.
"I just struggled in the conditions and it was one of the first times it has happened to me.
"You just keep sweating and lose energy. At some point I was just happy the match was over."
Have your say
More Sports Headlines
- EPL Wrap: Man City return to top, Spurs grab late winner
- Defender Smalling signs new Man Utd contract
- 2019 Africa Cup of Nations: Caf confirms bids from SA and Egypt
- CAF CC: Kotoko hold Kariobangi to goalless draw in first leg
- Mohamed Salah named BBC African Footballer of the Year 2018
- Jose Mourinho: Man Utd 'far' from being built in my image
- Active football in Ghana to resume next month
- Coca-Cola Minigolf League: Six clubs set for finals
- Eunice Beckmann to hold charity event for street kids in Accra
- Full list of revised shortlists for 2018 CAF Awards
- Partey fails to make Caf 10-man shortlist for Footballer of the Year award
- Egypt FA in U-turn over 2019 Africa Cup of Nations bid
- WTA gives increased protection for returning mothers on tour for 2019
- Morocco decide against 2019 Africa Cup of Nations bid
- UCL: Real Madrid suffer record home loss to CSKA Moscow