The Serb, who was replaced by Nadal at the top of the rankings on Monday, defeated Monfils, conqueror of Roger Federer in the previous round, in a match lasting two hours and 23 minutes.
After twice exchanging breaks during the first set, the Frenchman bagged the tiebreak 7-4 to go ahead. But Djokovic fought back, twice breaking Monfils, who had to receive treatment on a stomach muscle.
Djokovic got the crucial break in the seventh game of the third set and closed out the match to set up a semi-final clash with another Frenchman Jo-Wilfried Tsonga.
Nadal was made to work hard in the first set of his quarter-final against Stanislas Wawrinka, triumphing 7-6(10), 6-1 to progress to set up a clash with Argentina's Juan Martin del Potro.
Wawrinka, who is hoping to qualify for the end-of-season ATP World Tour Finals, saved three break points on his way to a 6-5 lead in the opening set before Nadal saved two set points in the 12th game to take it to a tiebreak which he won.
The Spaniard, who last week lost to Djokovic in the China Open final, then raced to a 5-0 lead in the second set before the Swiss held serve to merely prolong the inevitable as Nadal served out the match.
Del Potro kept his errors to a minimum, breezing past Spain's Nicolas Almagro 6-3, 6-3.
Del Potro, seeded sixth, had also defeated Almagro in last week's Japan Open semi-finals and now needs one more victory to seal his spot for next month's Tour Finals in London.
The Argentine, who was suffering from fever during the earlier stages of the hard-court tournament, committed just eight unforced errors during his win and faced a single break point, which he went on to save.
"I played very well today, very solid," Del Potro told reporters. "I played aggressive. I hit my forehand very well.
"I like the way I played today. I just want to keep improving (and) keep going far in this tournament."
Tsonga also took a positive step towards confirming his spot for London with a comfortable 6-2, 6-3 win over German Florian Mayer.
World number three Andy Murray's withdrawal from the Tour Finals due to injury has meant anyone finishing ninth or better in the race to London will qualify for the prestigious season-ending tournament.
Image: Rafael Nadal of Spain celebrates after defeating Stanislas Wawrinka of Switzerland
Photograph: Lintao Zhang/Getty Images
Federer dumped out of Shanghai Open by Monfils
Nadal reckons Federer will squeeze through to World Tour Finals
Djokovic canters as Federer makes winning return
Will Roger Federer win a Grand Slam in 2014?
PHOTOS: Serena passes Kirilenko test, Djokovic edges past Verdasco