Dactylogyrus is one of the most common parasitic diseases in fish and causes huge losses to the aquaculture industry. With the advantages of safety, low toxicity and easy degradation, plant-derived drugs are ideal for the creation of green aquatic ingredients. The use of plant-derived drugs in aquaculture is limited by their low content and high processing costs, which is a challenge that can be solved by the chemical synthesis of plant-derived drugs. Eleven new coumarin derivatives were synthesized and assessed for their anthelmintic activity in this study. Among them, the derivative 7-((1-tosyl-1H-1,2,3-triazol-4-yl)methoxy)-2H-chromen-2-one (N11) has good anthelmintic activity and its mean anthelmintic efficacy against D. intermedius at a concentration of 10 μM reached 99.84%, which is even better than the anthelmintic activity of the positive control mebendazole. Further studies showed that N11 had concentration values of 3.31 and 1.94 μM for 50% maximal effect (EC 50 ) against D. intermedius at 24 and 48 h, respectively. Furthermore, scanning electron microscopy revealed that N11 caused damage to D. intermedius. What is more noteworthy is that a substantial reduction in the ATP content of the parasite was observed following in vitro and in vivo administration of N11. Moreover, it was also found that N11 was able to inhibit the horizontal transmission of D. intermedius. Furthermore, real-time quantitative PCR analysis was utilized to determine the expression profile of genes associated with anti-inflammatory cytokines (IL-10, TGF-β and IL-4) in goldfish. In all examined organs, it was observed that the expression of anti-inflammatory cytokines increased subsequent to treatment with N11, according to the results. Thus, these results all suggest that N11 possesses good anthelmintic activity and is a potentially effective agent for the control of D. intermedius.