It also means that Djokovic has been knocked out of the French Open.
Controversial Djokovic first seemed to be heading for a clear loss, when Nadal in just over fifty minutes had won the first set 6-2.
But in the second, the Serb returned.
In the end, Djokovic won the 88-minute second set (6-4) and it was 1-1.
Ready for the semifinals is also the German world three Alexander Zverev, who earlier on Tuesday defeated the star shot Carlos Alcaraz with 3-1.