Recent studies have highlighted the involvement of pyroptosis-mediated cell death and neuroinflammation in ischemic stroke (IS) pathogenesis. DL-3-n-butylphthalide (NBP), a synthesized compound based on an extract from seeds of Apium graveolens, possesses a broad range of biological effects. However, the efficacy and the underlying mechanisms of NBP in IS remain contentious. Herein, we investigated the therapeutic effects of NBP and elucidated its potential mechanisms in neuronal cell pyroptosis and microglia inflammatory responses. Adult male mice underwent permanent distal middle cerebral artery occlusion (dMCAO), followed by daily oral gavage of NBP (80 mg/kg) for 1, 7, or 21 consecutive days. Gene Expression Omnibus (GEO) dataset of IS patients peripheral blood RNA sequencing was analyzed to identify differentially expressed pyroptosis-related genes (PRGs) during the ischemic process. Our results suggested that NBP treatment effectively alleviated brain ischemic damage, resulting in decreased neurological deficit scores, reduced infarct volume, and improved neurological and behavioral functions. RNA sequence data from human unveiled upregulated PRGs in IS. Subsequently, we observed that NBP downregulated pyroptosis-associated markers at days 7 and 21 post-modeling, at both the protein and mRNA levels. Additionally, NBP suppressed the co-localization of pyroptosis markers with neuronal cells to variable degrees and simultaneously mitigated the accumulation of activated microglia. Overall, our data provide novel evidence that NBP treatment significantly attenuates ischemic brain damage and promotes recovery of neurological function in the early and recovery phases after IS, probably by negatively regulating the pyroptosis cell death of neuronal cells and inhibiting toxic neuroinflammation in the central nervous system.