Dietary strategies rich in fiber have been demonstrated to offer benefits to individuals afflicted with rheumatoid arthritis (RA). However, the specific mechanisms through which a high-fiber diet (HFD) mitigates RA's autoimmunity remain elusive. Herein, we investigate the influence of pectin- and inulin-rich HFD on collagen-induced arthritis (CIA). We establish that HFD significantly alleviates arthritis in CIA mice by regulating the Th17/Treg balance. The rectification of aberrant T cell differentiation by the HFD is linked to the modulation of gut microbiota, augmenting the abundance of butyrate in feces. Concurrently, adding butyrate to the drinking water mirrors the HFD's impact on ameliorating CIA, encompassing arthritis mitigation, regulating intestinal barrier integrity, and restoring the Th17/Treg equilibrium. Butyrate reshapes the metabolic profile of CD4+ T cells in an AMPK-dependent manner. Our research underscores the importance of dietary interventions in rectifying gut microbiota for RA management and offers an explanation of how diet-derived microbial metabolites influence RA's immune-inflammatory-reaction.