Neonatal hypoxic-ischemic encephalopathy (HIE) is a condition causing brain injury in newborns with unclear pathogenesis. Cyclic GMP-AMP synthase (cGAS)/stimulator of interferon genes (STING) signaling pathway and NOD-like receptor protein 3 (NLRP3) mediated pyroptosis are thought to be involved in the pathological process of HIE, but whether these two mechanisms act independently is still unknown. Therefore, we aim to clarify whether there is any interaction between these two pathways and thus synergistically affects the progression of HIE. The HIE model of neonatal rats was established using the Rice-Vannucci method. The potential therapeutic effect of RU.521 targeting cGAS on HIE was explored through rescue experiment. Twenty-four hours after modeling was selected as observation point, sham + vehicle group, HIE + vehicle group and HIE + RU.521 group were established. A complete medium of BV2 cells was adjusted to a glucose-free medium, and the oxygen-glucose deprivation model was established after continuous hypoxia for 4 hours and reoxygenation for 12 to 24 hours. 2,3,5-triphenyl tetrazolium chloride staining was employed to detect ischemic cerebral infarction in rat brain tissue, and hematoxylin and eosin staining was used to observe tissue injury. Immunofluorescence was applied to monitor the expression of cGAS. Real-time quantitative polymerase chain reaction and western blot were utilized to detect the expression of messenger RNA and protein. cGAS expression was increased in brain tissues of neonatal rats with HIE, and mainly localized in microglia. RU.521 administration reduced infarct size and pathological damage in rat HIE. Moreover, blocking cGAS with RU.521 significantly reduced inflammatory conditions in the brain by down-regulating STING expression, decreasing NLRP3 inflammasome activation and reducing microglial pyroptosis both in vivo and in vitro. Besides, RU.521 promoted the switching of BV2 cells towards the M2 phenotype. This study revealed a link between the cGAS/STING pathway and the NLRP3/GSDMD/pyroptosis pathway in neonatal HIE. Furthermore, the small molecule compound RU.521 can negatively regulate cGAS/STING/NLRP3/pyroptosis axis and promote M2 polarization in microglia, which provides a potential therapeutic strategy for the treatment of neuroinflammation in HIE.