Here, we reveal that deletion of RNA 5-methylcytosine (m5C) methyltransferase Nsun2 in mouse CD4+ T cells specifically inhibits Th17 cell differentiation and alleviates Th17 cell-induced colitis pathogenesis. Here, NSUN2 is linked to colitis.