LONDON — Even when Roger Federer had the lead, Novak Djokovic had the answers.
The top-ranked Serb recovered from early breaks in both sets and beat Federer 7-6 (6), 7-5 Monday in the championship match at the ATP finals.
Federer broke Djokovic's serve to take a quick 2-0 lead in the first set, and then again to open the second, but both times the world's No. 1 player rebounded to get back into the match.
"Maybe a bit of regret because I had the lead twice first before him," Federer said. "At the end of the day, that doesn't matter. You have to get over the finish line in the set and then obviously at the match. He was better at that today."
The crowd at the O2 Arena was decidedly in Federer's favor, but they cheered loudly throughout the match as both made spectacular shots.
The highlight for Federer came in the tiebreaker with Djokovic holding his second set point.
Djokovic hit a forehand drop shot with Federer up at the net. The ball drifted past the second-ranked Swiss, but he chased it down and whacked a forehand winner to even the score at 6-6.
Two points later, however, and Djokovic was the one celebrating, ending the set with a forehand winner on his third set point.
To start the second set, Federer broke Djokovic for the third time and then held all the way to 5-3. A game later and serving for the set, Federer had two set points but he put a forehand wide and a then forehand into the net.
Two more Federer mistakes put Djokovic back on serve and back on track for the title. The Serb closed it out with a backhand passing winner to improve his head-to-head record against Federer to 3-2 this year, and 13-16 overall.
"I shouldn't have been broken as often as I was broken today," said Federer, who lost his serve twice in each set. "But then again, that obviously has something to do with Novak, as well."
Federer finished the match with 30 winners, 11 more than Djokovic. But he also had 42 unforced errors — many of them coming from his often dominant forehand — while Djokovic had only 28.
"Obviously I was going to try to go after my shots and not just hand it to him. That's just how I play tennis," Federer said. "If I have 80 errors and I win the match, I don't care. I really don't."
It was Djokovic's second victory at the year-end tournament for the top eight players in the world. He also won in 2008, when the tournament was in Shanghai.
Federer, who is now 15-3 in Britain this year after winning his seventh Wimbledon title and the Olympic silver medal, had been looking for his record seventh ATP title.
And he came close to winning it.
Both players finished the match winning 58 percent of their service points and 42 percent of their return points. Overall, Djokovic only won one more point in the match, getting 96 to Federer's 95. But on many of the big points, particularly late in the sets, it was Djokovic that ended up on the winning side of the net.