BASEL, Switzerland -- Defending champion Roger Federer beat Kei Nishikori 6-1, 6-3 in the Swiss Indoors final on Sunday to win his first title in 10 months.

The former top-ranked Swiss was emotional as he thanked his hometown fans after winning for the fifth time in six years at the event where he once worked as a ballboy.

Roger Federer won his 68th career title on Sunday but just his second in 2011 and first in 10 months. Fabrice Coffrini/AFP/Getty Images

"It's always the greatest for me to win the title here. See you next year," he said on court in Swiss-German.

Federer had a complete game on display to dominate the 32nd-ranked Japanese, who stunned top-ranked Novak Djokovic in the semifinals.

"He was too good for me today," said the 21-year-old Nishikori, who described Federer as "my idol. I tried to do my best but he wouldn't let me."

Federer's 68th career title was just his second this season after he won the season-opening event in Doha, Qatar. He had not reached a title match since losing the French Open final to Rafael Nadal in June.

Now ranked No. 4 at age 30, Federer was playing his first event while ranked outside the top three since he won his first Wimbledon title in 2003.

"It's been a great week. I got better as the week went on and I saved the best for last," he said.

Nishikori started strong on his own serve but Federer broke after reeling off three straight winners. Federer dropped just one point on his own serve in the first set and fired flat ground strokes to all corners of the court. He repeatedly pressured Nishikori's serve and took the set on a double fault.

Nishikori fended off break point chances to hold serve early in the second, then showed his speed and defensive strength by outlasting Federer in a long rally. The reprieve was brief and Federer broke again to lead 4-2.

He was serving for the match when Nishikori earned his first break-point chance, which Federer saved with a powerful serve.

Federer took his first match point with an overhead smash at the net as Nishikori scurried to field shots deep beyond the baseline.

Nishikori will rise to a career-best ATP ranking Monday -- perhaps as high as No. 25, which would mark the highest ever by a Japanese men's player.

The Basel lineup originally included five top 10 players, with Federer and Djokovic returning after six-week breaks after the U.S. Open and Davis Cup matches.