Microglial and astrocytic activation is the main reason for the neuroinflammatory responses, which damages neurons resulting in neurological disorders. Currently, there are few drugs that directly target neuroinflammation in clinical practice, which highlights the urgent need for effective inhibitors. In this study, we identified agrimonolide, from a screen of 40 compounds, as an inhibitor of glia activation, and further confirmed its efficacy in vitro and in vivo. In cellular models, agrimonolide significantly reduced the expression levels of proinflammatory cytokines (IL-1β, IL-6 and TNFα) in LPS stimulated BV2 cells and primary astrocytes. Mechanistic investigation revealed that agrimonolide suppresses the activation of both NF-κB and MAPK signaling pathways, combined the molecular docking results, it is suggested that agrimonolide may have multiple targets. In ICR mice, our measurements showed that agrimonolide treatment decreased LPS-induced glial activation, as evidenced by the protein levels of IBA-1 and GFAP. Additionally, it significantly inhibited the activation of TLR4-mediated signaling pathways. Our findings suggest that agrimonolide suppresses neuroinflammatory responses by inhibiting microglial and astrocytic activation, providing insight into potential treatment strategies for neuroinflammation-related diseases.