– It was difficult to discern which was less likely: that 12-time major champion Novak Djokovic would falter in his French Open quarterfinal or that Marco Cecchinato, who never won a Grand Slam match until last week and once faced a possible ban for losing on purpose, would rise to the occasion.

Either way, Tuesday's outcome was stunning. To both men. And to anyone watching.

Djokovic, bothered by neck and leg problems, went from two sets down to the verge of forcing a fifth, but he frittered away good chances and in the end was beaten by the 72nd-ranked Cecchinato 6-3, 7-6 (4), 1-6, 7-6 (11).

"A hard one to swallow," a glum Djokovic acknowledged during a brief news conference, in which he delivered clipped answers and said he might not play during the upcoming grass-court season.

Cecchinato is the lowest-ranked French Open semifinalist in 19 years and the first Italian man to make it that far at any major in 40 years.

"The best moment of my life," Cecchinato said.

Djokovic served for the fourth set at 5-3 — "I thought," Cecchinato would say, "my Roland Garros was about to end" — but the 2016 French Open champion got broken. Djokovic then held three set points in the tiebreaker — "I saw ghosts," Cecchinato would joke — but couldn't convert.

"A pity," Djokovic said.

At 7-6 in the closing tiebreaker, he pushed a backhand long. At 8-7, Cecchinato ended a 20-stroke exchange with a swinging volley winner. At 9-8, Djokovic flubbed a forehand, knelt and clasped his hands together as if praying, then raised an index finger as if to plea, "Let me have ONE of these!"

"I had a lot of courage, especially toward the end of the tiebreaker," Cecchinato said. "I was cool. Clear-headed. My heart was beating 1,000 mph. It wasn't easy. My hand was even shaking a little."

On Friday, Cecchinato will face No. 7 seed Dominic Thiem of Austria, who made it to his third consecutive French semifinal by beating No. 2 Alexander Zverev 6-4, 6-2, 6-1.

In the women's quarterfinals, No. 10 Sloane Stephens beat No. 14 Daria Kasatkina of Russia 6-3, 6-1, and No. 13 Madison Keys eliminated unseeded Yulia Putintseva of Kazakhstan 7-6 (5), 6-4.