Roger Federer claimed an eighth Swiss Indoor title when he outlasted Argentina's Juan Martin del Potro 6-7(5), 6-4, 6-3 in front of a partisan Basel crowd.
The 36-year-old beaten by Del Potro in consecutive Basel finals in 2012 and 2013, has managed to win back.
Victory means Federer trails world number one Rafael Nadal by 1,460 points going into the Paris Masters where 1,000 points are on offer for the champion.
Del Potro would have moved into the eighth and final qualifying spot for London had he claimed a third Basel title, but now must reach the semi-finals at least in the French capital to make it to the season-ending tournament.
Roger Federer has overtaken Ivan Lendl by winning his 95th career singles title after beating Juan Martin del Potro in three sets in the final of the Swiss Indoors in Basel.
The 19-time Grand Slam champion was made to work early by the big-serving Argentine, coming back from a set down to win 6-7 (5), 6-4, 6-3.
It is Federer's seventh title of the calendar year-the first time he has managed that feat in a decade.
Del Potro-who was on an eight-match winning streak having won in Stockholm a week ago - provided stern resistance in the first set, saving six break points.