Although Naomaitai capsule (NMC) is widely used in clinical practice and has a good curative effect for cerebral infarction, its material basis and mechanism of action remain unclear. In this study, ultra-high-performance liquid chromatography (UHPLC) coupled with quadrupole Orbitrap MS technology was used to analyse the in vivo and in vitro components of NMC, and the Global Natural Products Social Molecular Networking website was used to further analyse the components of NMC. Next, systems biology approaches were employed to investigate the mechanism of action of NMC. Finally, molecular docking technology was used to verify the network pharmacological results. In total, 177 compounds were identified in vitro, including 65 terpenoids, 62 flavonoids, 25 organic acids and 11 quinones. 64 compounds were identified in the blood of mice, and the main active components included ginkgolide C, ginkgolide A, ligustilide, tanshinone IIB, olmelin, emodin and puerarin. The main targets in vivo included TP53, SRC, STAT3, PIK3CA and PIK3R1. In conclusion, this study has revealed that NMC acts on multiple targets in the body through various active components, exerting synergistic effects in the treatment of CI. Its mechanism of action may involve inhibiting neuronal apoptosis, oxidative stress and inflammatory responses as well as reducing cerebral vascular permeability and promoting cerebral vascular regeneration.