World number three Roger Federer saved two match points in defeating 13th seed Borna Coric 2-6 6-4 7-6 (9-7) to reach the quarter-finals of the Italian Open.
Federer, playing in the event for the first time since 2016, beat Joao Sousa in straight sets earlier in the day.
Coric, 22, had not played since beating Cameron Norrie on Tuesday and returned superbly to race 4-0 ahead but Federer, 37, won in two hours and 31 minutes.
There were comfortable wins for Rafael Nadal and Novak Djokovic.
It was the first meeting on clay between Federer and Coric, with the Swiss leading 3-2 on previous encounters, having won the most recent 6-2 6-2 in Dubai this year.
Having lost the opening set comprehensively, during which he was treated for a blister, Federer had his first break point opportunity at 3-2 up in the second.
Though it was not taken, a magnificent cross-court forehand created another which led to a succession of exchanges of serve, culminating in another break from Federer to seal the set.
The Swiss saved a break point in both the fifth and ninth games of the decider and two match points in the deciding tie-break.
To tumultuous cheers from the crowd in the late evening, Federer, four times a beaten finalist in the tournament, rallied and served out for victory on his second match point.
He will next face eighth seed Stefanos Tsitsipas, the 20-year-old Greek who beat him at this year’s Australian Open, though Federer gained revenge in their most recent meeting in Dubai.
World number seven Tsitsipas beat two Italian players on Thursday, Jannik Sinner 6-3 6-2 and 10th seed Fabio Fognini 6-4 6-3.
Defending champion Nadal, seeking his ninth Italian title, conceded only two games in winning his two matches on Thursday.
The 32-year-old Spaniard, who has lost in the semi-finals of his past four events, beat France’s Jeremy Chardy 6-0 6-1 and Nikoloz Basilashvili of Georgia 6-1 6-0.
Nadal next plays fellow Spaniard Fernando Verdasco, who defeated 11th-seeded Russian Karen Khachanov 7-5 3-6 6-3.
World number one Djokovic, having beaten 20-year-old Denis Shapovalov 6-1 6-3 earlier in the day, needed only an hour and three minutes to oust German Philipp Kohlschreiber 6-3 6-0.
The 31-year-old Serb, who won the last of his four Italian titles in 2015, next plays seventh seed Juan Martin del Potro, who saw off Casper Ruud – the Norwegian who had progressed after Nick Kyrgios forfeited their second-round match – 6-4 6-4.