No. 10-seeded Tsonga won 7-6, (8), 6-7 (5), 1-6, 6-3, 6-1 in the Wednesday night match, consigning 2008 champion Djokovic to quarterfinals exits in consecutive years.
Djokovic took a medical timeout after going down 2-0 in the fourth. He'd just dropped a service game in which he clutched at his stomach and struggling to breath.
Tsonga took control of the remaining two sets and moved into a semifinal against top-ranked Roger Federer.
Djokovic retired in the fourth set of his 2009 quarterfinal against Andy Roddick due to heat-related illness.