French veteran Gilles Simon advanced to the second round at the Paris Masters on Monday night after an enthralling three-set victory over the former world number one Andy Murray.
Simon, playing in his last tournament before he retires, faced elimination when Murray served for the match at 6-4, 5-3 up.
But the 35-year-old Briton fluffed his chance and allowed Simon to take the next three games as well to claim the second set 7-5.
After losing his service early in the decider, Murray squandered several chances to break back.
And Simon, urged on by the partisans at the Accor Arena, dug in to eke out the win 4-6, 7-5, 6-3 after two hours and 50 minutes at the Accor Arena in Bercy, south-eastern paris.
A packed centre court roared the 37-year-old local hero onto the court. And once the match was underway, they cheered his every point including the errors from Murray.
The Briton went into the clash as the favourite. Murray had won 16 of their 18 encounters over 15 years and he started their 19th match strongly by breaking Simon's opening service game and holding his own to lead 3-0 lead after 18 minutes.
Chance
Murray served for the opening set at 5-3 up after 47 minutes but he fluffed his lines and allowed Simon to serve for parity at 5-5.
But Simon, who had received an invitation from the organisers to play in the main draw, was comparably munificent to the chagrin of the partisans.
At 6-4, Murray was a set to the good after 58 minutes.
Simon suggested a trademark gritty dogfight at the start of the second set when he broke the Murray serve. But he was quickly reeled in.
There was another glimmer when he fashioned a break point to lead 4-3 lead but he could not convert. And Murray held.
And then the coda after 105 minutes of play
Loss
Murray stepped up to serve for a place in the second round. Just as in the first set, he failed to exploit his advantage.
And Simon possessed the chance to continue his career for a few minutes longer.
It was an opportunity he embraced with relish as Murray contrived to blunder and blast his way into a losing position.
"I feel great," said Simon following the comeback.
"The last week has been difficult knowing that that my life of tennis is coming to end. And every little thing I do I know I'm doing for the last time.
"And going into a match against Andy wasn't great either given his record against me.
"But now there's another match and I will try to do my best again."
Win
Earlier, Simon's fellow Frenchman Richard Gasquet advanced to the second round with 6-3, 6-1 victory over Alex Molcan from Slovakia.
Gasquet, 36, also received an invitation from the tournament organisers into the main draw.
But he was rather more expedite about his affairs.
The world number 76 took 73 minutes to dispatch an opponent more than 30 places above him in the ATP rankings.
Gasquet will face the third seed Casper Ruud in the second round while Simon will play the ninth seed Taylor Fritz who saw off the unseeded Spaniard Alejandro Davidovich Fokina 7-5, 6-2.