High temperature chemistry in the fireballs created by the impacts of Comet P/Shoemaker-Levy 9 in Jupiter has been studied using thermochemical models of the impacts. Explosions of the fragments at different levels in the jovian atmosphere ranging from above the clouds of NH 3 ( s ) to below the clouds of H 2 O ( s ) have been considered. The chemical composition of the expanding fireballs is studied, allowing a retrieval of the distribution of oxygen, carbonaceous, sulfur, nitrogen, and phosphorus compounds following the impacts. As a result, a list of the most abundant compounds is derived, which is found to correspond to the compounds observed after SL9 impacts. In particular, it is found that the production of CS by chemical reactions in the fireballs can be comparable to the production of CS 2 . The predictions of CO/H 2 O, CS/CS 2 , and other abundance ratios, which can be derived from the models, may help in the determination of the average depth of the impacts.