Djokovic will start against big-hitting Martin Klizan, and then could face another power player in the third round: 2009 U. Open champion Juan Martin del Potro, who stunned the Serb at the Rio Olympics last year.
The 23-year-old Austrian had also reached the last four without dropping a set and broke serve in the opening game. Nadal reeled off four straight games, soaking up Thiem's power and returning it with interest.
Time and again Thiem threw everything he had at Nadal but there was no way past.
It means that the quartet will be kept apart until the semi-finals.
Djokovic and Federer are arguably the biggest beneficiaries.
His quarterfinal foe could be Dominic Thiem, who eliminated Djokovic in straight sets at the French Open.