This study assessed the in vitro anthelmintic activity of ethyl acetate extract (Cn-EtOAc) and its bioactive fractions (CnR3 and CnR5) obtained from Chamaecrista nictitans aerial parts against two Haemonchus contortus (Hc) isolates, one resistant (strain HcIVM-R) and another susceptible (strain HcIVM-S) to ivermectin. Ferulic acid and p-coumaric acid were identified in the bioactive fractions; therefore, their commercial standards were also assessed. A colocalization analysis between the ferulic acid commercial standard and eggs of the HcIVM-R strain was performed using confocal laser scanning microscopy and the ImageJ program. The ovicidal effects of the Cn-EtOAc extract, bioactive fractions and commercial compounds were tested through the egg hatching inhibition (EHI) assay on H. contortus isolates HcIVM-R and HcIVM-S. The Cn-EtOAc caused 88 % and 92 % EHI at 5000 µg/mL on HcIVM-R and HcIVM-S, respectively. Fractions CnR3 and CnR5 displayed the highest ovicidal activity against HcIVM-S, with effective concentrations (EC90) of 2134 and 601 µg/mL, respectively. Meanwhile, the commercial standards ferulic acid and p-coumaric acid also resulted in higher effectiveness on the same strain, with EC90 of 57.5 and 51.1 µg/mL. A colocalization analysis of ferulic acid and eggs of HcIVM-R revealed that this compound is localized to the cuticle surface of the embryo inside the egg parasite. The results demonstrated that both ferulic and p-coumaric acids interrupt the egg-hatching processes of the two Hc isolates. Both phenolic acids isolated from C. nictitans and commercial standards exhibited the best anthelmintic effect on HcIVM-S. These findings indicate that the phenolic acids were less effective in egg hatch inhibiting on the HcIVM-R strain compared to the HcIVM-S strain.