BBC Tennis Indian Wells
Djokovic had won his two previous encounters against Federer at Indian Wells
World number one Novak Djokovic recovered from a second-set battle to beat Roger Federer 6-3 6-7 (5-7) 6-2 in the BNP Paribas Open final.
The Serb had dominated the opening set at Indian Wells but the Swiss rallied in the second set, coming from a break down to win the tie-break.
Djokovic, 27, seemed rattled both by Federer and the crowd in the decider.
But he regained his composure to win his 50th career title and his fourth Indian Wells title.
"All the hard work I have done in the off-season has paid off, " eight-time grand slam title-winner Djokovic told BBC Sport.
Djokovic delights in 'best possible' start to 2015
"Nothing has been handed to me. I had to earn this, to fight for it with all the commitment to my everyday routine with my team. Hopefully I can use this confidence for the rest of the season. It's a great start."
Federer rescued that situation but two games later, Djokovic went 40-0 up on the Swiss player's serve and although Federer saved the three break points, including with an ace at 30-40, Djokovic set up another chance and sealed it with an angled passing shot which Federer steered wide.
BBC tennis correspondent Russell Fuller
"There was evidence here that even Djokovic gets tense. He served three double faults in the second set tiebreak, and then mangled a racquet after conceding his break of serve advantage in the deciding set.
The overwhelming majority of the crowd were pulling against him and yet, with the match in the balance, he still eased away from Federer by winning the final four games of the match.
His consistency and the standards he sets are currently out of reach."
The Serb, who had won his two previous meetings against Federer at Indian Wells, held to love in the next game to go 5-2 up and quickly wrapped up the set when Federer netted.
Federer needed to try to impose himself more in the match in the second set and was given a glimmer of hope with a break point in the second game but Djokovic raised his game once again.
The Swiss threw everything at the Serb but the world number one, who won the Australian Open in January, gave it back to him and broke again in the third game.
You might also like
Guciheaven Mens Spring New Style Fashion Net Cloth Suede Casual Sport Shoes(7.5 D(M)US, Brown)
Guciheaven Mens 2015 New British Style Low Top First Of Leather Moccasin(8 D(M)US, Acid Blue)
Guciheaven 2015 New Style Fashion PU Leather Low Top Beautiful Rhinestone Design Middle Heel Shoes(6 B(M)US, Black)
Guciheaven Mens 2015 New British Style Lace-up Casual Leather Shoes(8 D(M)US, Brown)