Multiple sclerosis (MS) is a common autoimmune illness that is difficult to treat. The upregulation of Th17 cells is critical in the pathological process of MS. Hederagenol (Hed) has been shown to lower IL-17 levels, although its role in MS pathophysiology is uncertain. In this study, we explore whether Hed could ameliorate MS by modulating Th17 cell differentiation, with the goal of identifying new treatment targets for MS. The experimental autoimmune encephalomyelitis (EAE) mouse model was conducted and Hed was intraperitoneally injected into mice. The weight was recorded and the clinical symptom grade was assessed. Hematoxylin-eosin staining was carried out to determine the extent of inflammation in the spinal cord and liver. The luxol Fast Blue staining was performed to detect the pathological changes in the myelin sheath. Nerve damage was detected using NeuN immunofluorescence staining and terminal deoxynucleotidyl transferase dUTP nick-end labeling staining. Immunohistology approaches were used to study alterations in immune cells in the spinal cord. The proportions of T cell subsets in the spleens were analyzed by flow cytometry. RORγt levels were measured using quantitative real-time PCR or Western blot. The activity of the RORγt promoter was analyzed by Chromatin immunoprecipitation. Hed administration reduced the clinical symptom grade of EAE mice, as well as the inflammatory infiltration, demyelination, and cell disorder of the spinal cord, while having no discernible effect on the mouse weight. In addition, Hed treatment significantly reduced the number of T cells, particularly Th17 cells in the spinal cord and spleen-isolated CD4+ T cells. Hed lowered the RORγt levels in spleens and CD4+ T cells and overexpression of RORγt reversed the inhibitory effect of Hed on Th17 differentiation. Hed decreased nerve injury by modulating Th17 differentiation through the RORγt promoter. Hed regulates Th17 differentiation by reducing RORγt promoter activity, which reduces nerve injury and alleviates EAE.