Inflammatory bowel disease (IBD) is a chronic and recurrent disease of the gastrointestinal tract that enhances the chance of developing colorectal cancer. Since standard treatments such as Mesalazine have limited effectiveness and are often accompanied by numerous side effects, the use of immune modulators derived from worms has been proposed as a new immunotherapy method for inflammatory diseases such as ulcerative colitis. The aim of this study is to investigate the protective effects of D. dendriticum egg antigen on DSS-induced colitis in C57BL/6 mice. D. dendriticum egg antigen was extracted and DSS (3.5%) was used to induce colitis in mice. Treatment and prophylaxis included intraperitoneal injections of D. dendriticum egg antigen. Histopathological indicators and the disease activity index (DAI), including weight loss, rectal bleeding, stool consistency, and rectal prolapse, were used to assess the severity of colitis. Real-time PCR measured the expression of transforming growth factor-β (TGF-β) and interleukin-17 (IL-17), while ELISA determined the concentration of these cytokines. Treatment with D. dendriticum egg antigen significantly improved the clinical symptoms and decreased the severity of DSS-induced colitis. Furthermore, D. dendriticum egg antigen increased the expression of TGF-β mRNA and reduced the expression of IL-17 mRNA, leading to a positive adjustment in the regulation of proteins and reduction of inflammatory proteins. As a result, the macroscopic, microscopic inflammation and activity index (DAI) of DSS-induced decreased. D. dendriticum egg antigen provides a promising new way to modulate the immune system and improve ulcerative colitis.