NOVAK DJOKOVIC was at a difficult point in his career when he was confronted by Tomas Berdych at the semifinal stage of Wimbledon three years ago.

But the man who has risen to number one in the world believes the defeat that Berdych inflicted that day provided the catalyst for his success.

Just two years after winning the 2008 Australian Open, people had begun questioning whether Djokovic’s best days were already behind him.

How wrong they were. Belief, drive and the masterstroke of switching to a gluten-free diet have helped him soar to the top of the men’s game. The Serbian, now 26, has won five grand slams since and is aiming to add another Wimbledon title to the one he secured in 2011.

Djokovic approaches today’s Court One quarterfinal against Berdych as the firm favourite, but he is wary of the Czech’s threat, particularly given his memories of their last meeting.

‘‘I had quite a turbulent five, six months of 2010,’’ Djokovic said. ‘‘The semi-finals of Wimbledon came at the right time for me because I felt that was like a springboard for me.

‘‘From that moment on everything started going uphill really.

‘‘I didn’t play great in that match against Tomas, but credit to him because he got to the final that year, and he beat Roger Federer and myself, played a good match against Rafa Nadal.

‘‘So he knows how to play on grass. That’s the only time we played on this surface. I’m expecting a difficult match.

‘‘It’s the quarter-finals of a grand slam. He’s an established top five, top ten player in the world. We’re going to go for the win, both of us.’’ Berdych is bidding to reach a fourth grand slam semifinal by beating Djokovic, a player he overcame when they met at the Rome Masters in April. The winner will face David Ferrer or Juan Martin del Potro in the semi-finals.