Facing his fellow Serb, Djokovic won the first set 6-3 before producing a dominant 6-0 in the second. Kecmanovic fought back in the third but was unable to stop Djokovic on his way to the fourth round, setting up a round of 16 tie with Alex de Minaur.
Djokovic made his Wimbledon debut in 2005, defeating Juan Monaco in the opening round before exiting at the third round stage.
A fourth-round appearance in 2006 was followed by the semi-final in 2007 but Djokovic would have to wait until 2011 to get his hands on the coveted prize.
That win kickstarted a remarkable run that saw him reach at least the semi-finals from 2011 to 2015. During that time, he won three titles and finished runner-up in 2013.
But that streak was bettered from 2018 to 2022 when the Serbian won every edition of Wimbledon, taking him to seven titles, level with Pete Sampras and just one behind Roger Federer.
Back-to-back finals in 2023 and 2024 saw him lose both times to Carlos Alcaraz and the 38-year-old hinted going into this year's tournament that it could be his "last dance" at grand slams.
"Whether it could be my last dance, I'm not sure, as I'm not sure about Roland Garros or any other slam that I play next," he told media at Wimbledon.
"My wish is to play for several more years. I would love to be healthy physically and also mentally motivated to keep on playing at the highest level. That's the goal, but you never know at this stage.
"And yes, I would probably agree that Wimbledon could be the best chance because of the results I had, because of how I feel, how I play in Wimbledon, just getting that extra push mentally and motivation to, yeah, perform the best tennis at the highest level."