As a famous prescription in China, AnGong NiuHuang (AGNH) pill exerts good neuroprotection for ischaemic stroke (IS), but its mechanism is still unclear. In this study, the neuroprotection of AGNH was evaluated in the rat IS model which were established with the surgery of middle cerebral artery occlusion (MCAO), and the potential mechanism was elucidated by transcriptomic analysis and metabolomic analysis. AGNH treatment obviously decreased the infarct volume and Zea-Longa 5-point neurological deficit scores, improved the survival percentage of rats, regional cerebral blood flow (rCBF), and rat activity distance and activity time. Transcriptomics showed that AGNH exerted its anti-inflammatory effects by affecting the regulatory network including Tyrobp, Syk, Tlr2, Myd88 and Ccl2 as the core. Integrating transcriptomics and metabolomics identified 8 key metabolites regulated by AGNH, including L-histidine, L-serine, L-alanine, fumaric acid, malic acid, and N-(L-arginino) succinate, 1-pyrroline-4-hydroxy-2-carboxylate and 1-methylhistamine in the rats with IS. Additionally, AGNH obviously reduced Tyrobp, Syk, Tlr2, Myd88 and Ccl2 at both the mRNA and protein levels, decreased IL-1β, KC-GRO, IL-13, TNF-α, cleaved caspase 3 and p65 nucleus translocation, but increased IκBα expression. Network pharmacology analysis showed that quercetin, beta-sitosterol, baicalein, naringenin, acacetin, berberine and palmatine may play an important role in protecting against IS. Taken together, this study reveals that AGNH reduced neuroinflammation and protected against IS by inhibiting Tyrobp/Syk and Tlr2/Myd88, as well as NF-κB signalling pathway and regulating multiple metabolites.