In this study, we demonstrate that Nsun2-mediated m5C modification is crucial for Th17 cell homeostasis and promotes colitis pathogenesis in mice. Here, NSUN2 is linked to colitis.