Roger Federer reacts during the Swiss Indoors final against Juan Martin del Potro on Sunday. Photo: Alexandra Wey/Keystone via AP

BASEL, Switzerland – 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 on Sunday.

The 36-year-old local favourite, beaten by Del Potro in consecutive Basel finals in 2012 and 2013, was ragged at times and looked in danger of an unwanted hat-trick, but showed all his battling qualities to turn the match around.

Fourth seed Del Potro, making a late run to try and qualify for next month’s ATP World Tour Finals in London, broke serve in the first game of the decider, but wilted as Federer stormed back to the delight of a raucous crowd inside the St Jakobshalle.

World number two Federer charged into a 5-2 lead, and while Del Potro delayed the end by holding serve, Federer would not be denied and racked up his 95th career title as Del Potro fired a backhand long under pressure.

Victory means Federer trails World No 1 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.