Daniil Medvedev overcame a stern test against Sebastian Korda at the Madrid Open on Monday, fighting back from the brink of defeat to seal a 5-7 7-6 (7-4) 6-3 win and reach the last 16.

The world number four was staring at an early elimination when Korda took the opening set and put himself within two points of victory on two occasions, at both 5-4 and 6-5 up in the second.

However, Medvedev twice held firm on his own serve to force a tie-break, and the pair exchanged mini breaks before the 2021 US Open champion seized control to take it 7-4.

Medvedev's performance was error-strewn in parts, but he found more consistency in the third set, claiming the all-important break eight games in after repeatedly testing Korda's forehand.

Medvedev will now face Alexander Bublik for a place in the quarter-finals on Tuesday after the 17th seed overcame Ben Shelton in three sets.

Data Debrief: Medvedev overcomes awkward opponent

Medvedev has not always had things all his own way against Korda, who eliminated him from the Australian Open and the Shanghai Masters in 2023.

Prior to Monday's match, he was 23-2 versus American players since the start of 2021, with both losses coming against Korda. However, having also beaten Korda en route to the Indian Wells Open final last month, he seems to have put that hoodoo behind him.