Résumé : Terminalia leiocarpa is a medicinal plant widely used in ethnoveterinary medicine to treat digestive parasitosis whose extracts were shown to be active against gastrointestinal nematodes of domestic ruminants. The objective of our study was to identify compounds responsible for this activity. Column fractionation was performed, and the activity of the fractions was assessed in vitro on Haemonchus contortus and Caenorhabditis elegans as well as their cytotoxicity on WI38 fibroblasts. Two fractions were the most active on both nematode models and less cytotoxic. LC-MS/MS analysis and manual dereplication coupled to molecular networking allowed identification of the main compounds: ellagic acid and derivatives, gallic acid, astragalin, rutin, quinic acid, and fructose. Other potentially identified compounds such as shikimic acid, 2,3-(S)-hexahydroxydiphenoyl-D-glucose or an isomer, quercetin-3-O-(6-O-galloyl)-β-D-galactopyranoside or an isomer, and a trihydroxylated triterpenoid bearing a sugar as rosamultin are reported in this plant for the first time. Evaluation of the anthelmintic activity of the available major compounds showed that ellagic and gallic acids were the most effective in inhibiting the viability of C. elegans. Their quantification in fractions 8 and 9 indicated the presence of about 8.6 and 7.1 µg/mg ellagic acid and about 9.6 and 2.0 µg/mg gallic acid respectively. These concentrations are not sufficient to justify the activity observed. Ellagic acid derivatives and other compounds that were found to be positively correlated with the anthelmintic activity of the fractions may have additive or synergistic effects when combined, but other unidentified compounds could also be implicated in the observed activity.