The aim of the study was to compare the in vivo anthelmintic activity of sainfoin hay (Onobrychis viciifolia) and carob pod meal (Ceratonia siliqua) against gastrointestinal nematodes. Seven days before infection, 64 naive lambs were assigned to four different groups: Group S received sainfoin hay and group CAR was fed with carob pods. The remaining lambs received lucerne hay (Medicago sativa) and were assigned to positive (non-treated, NT) and negative (treated, T) control groups (treatment with albendazole). On day 0, lambs were artificially trickle infected for 6 weeks, with a mixture of infective larvae of Haemonchus contortus and Trichostrongylus colubriformis. Parasitological and pathophysiological parameters were measured repeatedly during the 2-month study. Compared to the NT group, decreases in egg excretion were observed in the CAR and S groups with significant differences only found for sainfoin (p < 0.05). At necropsy, group S showed decreases in the total worm numbers of both nematode species with significant differences for H. contortus. In contrast, no differences were noticed for the CAR group. Compared to the NT group, lower values for fecundity of female H. contortus were found in the S and CAR groups, however differences were non-significant. No differences in body weight gains were found between groups. Consistent results were found showing significantly higher packed cell volume (PCV) values in the T and S groups compared to NT and CAR groups. Overall, these results confirm a positive effect associated with the feeding of lambs with tanniniferous resources on host resilience (PCV values) and against gastrointestinal parasitic nematodes by affecting some biological traits of worm populations (e.g. eggs per gram of faeces and worm numbers). However, the anthelmintic effects differed between the two tannin-containing resources, which might be associated with the quantity and/or quality of secondary metabolites (condensed tannins and/or other polyphenols).