He was aiming for his first quarter-final at the event since his title run in 2015, as well as his first Masters quarter-final since winning the Paris crown in 2016.
It was only Djokovic's third loss of the year, after being disqualified for hitting a line judge with a ball at the U.S. Open and losing the French Open final to Rafael Nadal.