Background: Resident microglia and macrophages are the predominant contributors to neuroinflammation and immune reactions, which play a critical role in the pathogenesis of ischemic brain injury. Controlling inflammatory responses is considered a promising therapeutic approach for stroke. Recombinant human fibroblast growth factor 21 (rhFGF21) has anti-inflammatory properties by modulating microglia and macrophages, but our knowledge of the inflammatory modulation of rhFGF21 in focal cerebral ischemia is lacking. Therefore, we investigated whether rhFGF21 improves ischemic outcomes in experimental stroke by targeting microglia and macrophages. Methods: C57BL/6 mice were subjected to transient middle cerebral artery occlusion (tMCAO) and randomly divided into groups that received intraperitoneal rhFGF21 or vehicle daily starting at 6 h after reperfusion. Behavior assessments were monitored for 14 d after tMACO and the gene expression levels of inflammatory cytokines were analyzed with qPCR. The phenotypic variation of microglia/macrophages and the presence of infiltrated immune cells were examined by flow cytometry and immunostaining. Additionally, magnetic cell sorting (MACS) in combination with fluorescence-activated cell sorting (FACS) was used to purify microglia and macrophages. Results: rhFGF21 administration ameliorated neurological deficits in behavioral tests by regulating the secretion of pro-inflammatory and anti-inflammatory cytokines. rhFGF21 also attenuated the polarization of microglia/macrophages toward the M1 phenotype and the accumulation of peripheral immune cells after stroke, accompanied by a temporal evolution of the phenotype of microglia/macrophages and infiltration of peripheral immune cells. Furthermore, rhFGF21 treatment through its actions on FGF receptor 1(FGFR1) inhibited M1 polarization of microglia and pro-inflammatory cytokine expression by suppressing nuclear factor-kappa B (NF-κB ) and upregulating peroxisome proliferator-activated receptor PPAR-γ. conclusion:In summary, rhFGF21 treatment promoted functional recovery in experimental stroke by modulating microglia/macrophage-mediated neuroinflammation via the NF-κB and PPAR-γ signaling pathways, making it a potential anti-inflammatory agent for stroke treatment. Keywords : rhFGF21, stroke, neuroinflammation, microglia/macrophage, NF-κB, PPAR-γ