Britain's Andy Murray will face old rival Novak Djokovic for the first time since 2017 after beating Canada's Denis Shapovalov at the Madrid Open.
Murray, 34, produced a high level to win 6-1 3-6 6-2 against world number 16 Shapovalov, who beat the Scot at Wimbledon last year.
Now an even tougher test against world number one Djokovic awaits on Thursday.
Serbia's Djokovic started his campaign on the Madrid clay with a 6-3 6-2 win against France's Gael Monfils.
The 20-time Grand Slam champion will play Murray - who he has known since they were children and faced 36 times in their professional careers - in the last 16.
"He's the world number one and I've got a metal hip," world number 78 Murray told Amazon Prime. "I didn't know I'd get opportunities to play matches like this again. In theory I shouldn't have a chance in the match.
"But I've worked my hardest, put myself in a great position and it's a fantastic opportunity to play against him again on a big court in a huge tournament."
The 34-year-old Scot had planned to skip the clay-court season but reversed his decision last month when accepting a wildcard for Madrid.
After beating 2020 US Open champion Dominic Thiem in the first round, Murray had the chance to avenge his defeat against Shapovalov at Wimbledon last year.
Murray raced through the first set as he showed some of his best tennis since returning from major hip surgery three years ago - a particular highlight being a deft cross-court winner after racing from the baseline to the net.
After a tight start to the second set, Shapovalov fought off two break points at 2-2 and then took Murray's serve in the very next game on his way to levelling the match.
Murray maintained his fitness levels and his sharp movement, coupled with trademark determination, proved crucial in the deciding set.
At 12:34am local time, he sealed victory with his third match point and clinched back-to-back wins for the first time since reaching the Sydney final in January.
Earlier, Djokovic extended his 100% winning record over Monfils to 18 games - an ATP record for head-to-head dominance - and the victory also ensured he will remain at the top of the rankings.
The three-time Madrid champion is playing in only his fourth tournament of 2022 after not being allowed to compete at the Australian Open and events in the United States because he is unvaccinated against Covid-19.
"I'm still finding my form and my groove but I'm happy," said 34-year-old Djokovic.
Latest Stories
-
Elon Musk to spend election night with Donald Trump
34 mins -
UCL: Real Madrid lose to AC Milan in second straight home defeat
44 mins -
Queen Camilla cancels events due to chest infection
54 mins -
Accusations fly in Spain over who is to blame for flood disaster
57 mins -
Economy is growing below potential – IEA
1 hour -
UCL: Gyokeres hat-trick as Amorim’s Sporting thrash Man City
1 hour -
Equatorial Guinea VP warns against office sex after viral videos
1 hour -
Netflix Europe offices raided in tax fraud probe
1 hour -
UCL: Diaz nets hattrick as Liverpool beat Leverkusen
1 hour -
Israel PM Netanyahu fires defence minister Gallant
2 hours -
From Arizona to Pennsylvania, Americans embrace calm before election’s storm
2 hours -
Sam Jonah calls for urgent action against ‘pervasive’ corruption in Ghana
2 hours -
‘Pawn’ movie premiere ends with great reviews
2 hours -
Gospel musician Afia Ayiwah out with ‘Jesus Reigns’
2 hours -
We’ve made significant strides in judiciary – Akufo-Addo
2 hours