World number one Djokovic had not lost a match since falling to American Sam Querrey at the Paris Masters on October 31.

His 17 wins this year included a run to a fourth Australian Open title and an ATP triumph in Dubai.

“It’s OK. It happens in sport,” Djokovic said Saturday of the end of his winning streak. “I just didn’t make it this time.”

After del Potro leveled the match by winning a tense second set that included five breaks of serve, Djokovic appeared to have regrouped.

He sped to a 3-0 lead in the third with one break of serve, but del Potro broke back to narrow the gap to 3-2.

Serbia’s Novak Djokovic is pictured during his ATP Indian Wells Masters match against Juan Martin del Potro in California on March 16, 2013. “I didn’t deserve to win today,” Djokovic said after losing 4-6, 6-4, 6-4 to del Potro.

While del Potro was unable to convert two break chances in the seventh game, he came through in the ninth.

A well-judged forehand to the corner gave him a second break point in the game, and when Djokovic sailed a backhand long, del Potro was serving for the match.

He polished it off in style, with a 133 mile per hour ace.

“I didn’t deserve to win today,” a weary-sounding Djokovic said. “Whenever I had chances, second, third set, I throw them away with some unforced errors. My movement was poor, and I congratulate to my opponent.”