In the present study, the nematicidal activity of the chemical fractionation of the spent substrate of the edible mushroom Pleurotus ostreatus against eggs and L3 larvae of Haemonchus contortus was evaluated. The hydroalcoholic extract of the spent substrate was subjected to a bipartition with ethyl acetate giving two fractions: one aqueous (F. Ac) and one organic (F. AcOET). Both fractions were evaluated against eggs and L3 larvae at different concentrations (5, 2.5, 1.25, 0.625 and 0.3125mg/mL) and 2% methanol, PBS and thiabendazole (5mg/mL) as controls. Chemical fractionation of F. AcOET was performed in open column chromatography where 76 fractions were obtained and when analyzed by thin layer chromatography (TLC) were grouped into 11 mixtures (R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11). These mixtures were evaluated at 10mg/mL against eggs and L3 larvae. The data obtained were analyzed by ANOVA and a Tukey test in the SAS V9 program. The results showed that, in the evaluation of F. AcOET and F. Ac, for the inhibition of egg hatching, the highest percentages were 78.80 and 76.89% at 5mg/mL, respectively. As for the percentage of larval mortality, F. AcOET obtained 60.91 and F. Ac 29.77% at 5mg/mL. The results of the evaluations of the mixtures showed that mixtures R4, R5 obtained 100 and 95.41% larval mortality and mixtures R6 and R7 presented 100% inhibitory activity of egg hatching, so these were analyzed by gas chromatography mass spectrometry finding compounds such as vanillin, β-sitosterol, ρ-methyl ρ-hydroxycinnamate and ρ-hydroxybenzaldehyde. The results of the present study demonstrate that the spent substrate of P. ostreatus has potential anthelmintic activity against H. contortus. Moreover, by reusing and taking advantage of this substrate, its environmental pollution effects can be reduced.