Brazilian teenager Joao Fonseca produced the biggest upset of the French Open so far on Friday, defeating Novak Djokovic in the third round and ending the Serbian's bid for a record 25th Grand Slam singles title.

The 39-year-old Serb - a three-time champion at Roland Garros - lost 4-6, 4-6, 6-3, 7-5, 7-5 as temperatures again reached 33 degrees C (91 F).

Djokovic looked exhausted in the fifth set but soldiered on and his exit leaves the men's draw even more open following Jannik Sinner's second-round exit on Thursday.

"Tough one for me to lose," Djokovic said. "I was barely standing on my legs toward the end of the match."

Facing Fonseca for the first time, Djokovic mixed trademark defense with stunning winners and delicate drop shots to win the first two sets.