The final score, 7-6 1-6 7-6 4-6 13-12, ended an epic five-set match.
Djokovic won the first and third set, and Federer took the second and fourth; the fifth set was finally won by Djokovic.
The win is his fifth Wimbledon title win and 16th Grand Slam title overall. The finals is one of the longest matches of the tournament with 4 hrs 57 minutes of play and also the first fifth-set tiebreak in Wimbledon singles history.
Earlier this year, Djokovic won the Australian Open, defeating Rafael Nadal.
He joins Simona Halep, who won the women’s singles championship at Wimbledon yesterday, defeating Serena Williams.