Ligustilide, a natural phthalide mainly derived from chuanxiong rhizomes and Angelica Sinensis roots, possesses anti-inflammatory activity, particularly in the context of the nervous system. However, its application is limited because of its unstable chemical properties. To overcome this limitation, ligusticum cycloprolactam (LIGc) was synthesized through structural modification of ligustilide. In this study, we combined network pharmacological methods with experimental verification to investigate the anti-neuroinflammatory effects and mechanisms of ligustilide and LIGc. Based on our network pharmacology analysis, we identified four key targets of ligustilide involved in exerting an anti-inflammatory effect, with the nuclear factor (NF)-κB signal pathway suggested as the main signalling pathway. To verify these results, we examined the expression of inflammatory cytokines and inflammation-related proteins, analysed the phosphorylation level of NF-κB, inhibitor of κBα (IκBα) and inhibitor of κB kinase α and β (IKKα+β), and evaluated the effect of BV2 cell-conditioned medium on HT22 cells in vitro. Our results, demonstrate for the first time that LIGc can downregulate the activation of the NF-κB signal pathway in BV2 cells induced by lipopolysaccharide, suppress the production of inflammatory cytokines and reduce nerve injury in HT22 cells mediated by BV2 cells. These findings suggest that LIGc inhibits the neuroinflammatory response mediated by BV2 cells, providing strong scientific support for the development of anti-inflammatory drugs based on natural ligustilide or its derivatives. However, there are some limitations to our current study. In the future, further experiments using in vivo models may provide additional evidence to support our findings.