In this study, we aimed to explore the role of Tarm1 in juvenile mice with dextran sulfate sodium (DSS)-induced colitis and elucidate the mechanisms that affect intestinal barrier function. A DSS-induced pediatric inflammatory bowel disease mouse model was established using 4-week-old juvenile mice. Disease activity index and histopathological damage scores were determined using hematoxylin and eosin (H&E) staining. Tarm1, F4/80, CD68, and CD86 levels were detected using qPCR, western blotting, and immunofluorescence. Trans epithelial electric resistance (TEER) was detected using the transwell assay. Results revealed that juvenile colitis mice fed 4% DSS drinking water had increased Tarm1 expression in the colon tissue, increased macrophage M1 polarization, higher expression of pro-inflammatory cytokines, and an impaired intestinal mucosal barrier, compared with the control group. Tarm1-knockdown RAW264.7 cells inhibited lipopolysaccharide (LPS)-induced M1 polarization and attenuated barrier damage in co-cultured intestinal epithelial cells. Tarm1 expression was increased in colonic tissues of juvenile mice with colitis, and LPS-induced M1 polarization and intestinal barrier damage were attenuated in Tarm1-knockdown RAW264.7 cells. This suggests that attenuation of Tarm1 expression is a potential target for pediatric inflammatory bowel disease therapy.