Rafael Nadal and Novak Djokovic overcame tough challenges in their quarterfinals at the Shanghai Masters on Friday and moved a step closer to a possible showdown in the final.

Top-ranked Nadal saved three set points and finally closed out a 20-minute tiebreak in the first set against Switzerland's Stanislas Wawrinka before winning 7-6 (10), 6-1.

Djokovic, the defending champion, needed nearly 2 ½ hours to rally past France's Gael Monfils 6-7 (4), 6-2, 6-4.

Djokovic and Nadal improved to a combined 20-0 record against the pair.