PARIS, June 2 (Reuters) - Second seed Roger Federer produced a thrilling riposte to Gilles Simon's gallant attempt to knock him out of the French Open on Sunday to claim a 6-1 4-6 2-6 6-2 6-3 victory in front of a raucous late-evening crowd on Philippe Chatrier Court.
Averting a mounting crisis in the middle of a spectacular fourth-round match, Federer won the last two sets to reach his 36th consecutive grand slam quarter-final and keep alive his hopes of a second title at Roland Garros.
When 15th seed Simon, roared on by chants of "Gillou", won the third set, Federer looked to be in careering towards the exit door but the 17-times grand slam champion hit back with every weapon in his arsenal to set up a quarter-final with another French hope, Jo-Wilfried Tsonga.
It was nerve-racking until the end, however, with Federer missing an easy volley when serving for the match at 5-3 to offer Simon hope of a late escape.
Federer then wasted his first match point with an anxious forehand swiped into the net but when a second opportunity came his way Simon pushed a backhand into the tramlines.
"It was beautiful, it's always special to play matches like that," 2009 champion and firm Paris favourite Federer said at courtside. "You always remember matches like this."
The victory was 31-year-old Federer's 58th at the French Open, making him joint leader with Guillermo Vilas and Nicola Pietrangeli on the all-time list of matches won here.
Whatever the statistics, and Federer has created many of the telling ones down the years, it was the sheer love of the fight that had fans screaming his name too on Sunday.
"At the end of the day, I work hard to be exactly in this situation in a tough match where the crowd is going crazy and you want to stay calm within the storm," told reporters.
"Honestly, for me, it's what I play for."
The Swiss had to dig into his vast repertoire of strokes to subdue Simon - a player who has troubled him before and who won the first two of their five previous meetings.
There were the delicate drop shots, lob volleys, the backhand slices that seem to hang in the air for eternity and then those explosive forehands that few players can return.
Federer even managed to curl one extraordinary winner between the outside of the net post and the umpire's chair to give him a sixth and final set point in the opener.
The stage seemed set for a Federer masterclass but Simon, despite lacking the firepower of those at the very top of the game, was not prepared to go down without a scrap.
He began to make inroads and when Federer stumbled and fell in the sixth game, the Frenchman's chance came. The Swiss ended up on his hands and knees on the red dirt after snagging his toe in the surface and lost his poise.
There was no obvious damage but he was broken in the next game and Simon rammed home the advantage to level the match.
"Perhaps that bothered me a little bit but not very much. Maybe just five minutes," Federer said of his slip.
"He seized his opportunity. He got the advantage and he made my life difficult."
A flustered Federer dropped his serve twice in the third set as Simon, bidding to reach the quarter-finals at his home grand slam for the first time, sensed his chance for a huge upset.
Federer has made a career out of pulling out the stops when required, however, and quickly restored order, overpowering a tiring Simon in the fourth set with some belligerent tennis.
An early break in the fifth gave Federer breathing space and despite a few nervous moments at the end he claimed the 900th Tour victory of his career.
"I knew 900 was on the line," he said. "I didn't know about the Vilas one but I'm just happy I have been able to win a lot of matches throughout my career.
"I'm pleased to give myself an opportunity over and over again. I love this game."
The Parisian crowd clearly love him too. (Reporting by Martyn Herman; Editing by Sonia Oxley)