Roger Federer earned a rematch with Juan Martin del Potro for his hometown Swiss Indoors title by beating Vasek Pospisil in a tense semifinal on Saturday.
Federer tested his home fans' nerves before advancing to his eighth straight Basel final with a 6-3, 6-7 (3), 7-5 win against the 40th-ranked Canadian.
The third-seeded Federer faltered when serving for the match at 5-3 in the second set, and fell 3-1 behind in the decider before rallying.
Earlier, defending champion del Potro also let the second set slip away against an unseeded opponent before beating Edouard Roger-Vasselin of France 6-4, 4-6, 6-2.
With victory on Sunday, the sixth-ranked Federer will secure his place at the ATP Finals in London in just over a week, closing his most difficult season.