<b><i>Introduction:</i></b> Cerebral ischemia and reperfusion (CI/R) injury is a devasting cerebrovascular disease, accompanied with ischemia stroke, cerebral infarction. Zuogui Pill (ZGP), as a Chinese traditional medicine, is proved to be effective in many diseases and cancers. Our study aimed to detect the roles of ZGP in CI/R injury. <b><i>Methods:</i></b> Neural stem cells were isolated from rats and induced by oxygen and glucose deprivation and recovery. CCK-8 and flow cytometry were applied to assess the function of ZGP on cell viability and apoptosis. Rat CI/R injury models were established by the middle cerebral artery occlusion and reperfusion. The function of ZGP on CI/R injury was identified via evaluating modified neurological severity score, infarct area, and cognitive impairment. <b><i>Results:</i></b> Compared to the control, the cell viability was obviously decreased in the oxygen and glucose deprivation and recovery (OGD/R) group, while the adverse influence on cells was reversed by cultured plus 10% ZGP serum. Consistently, ZGP attenuated the influence of OGD/R on cell apoptosis. More importantly, ZGP could alleviate CI/R injury of rats by reducing neurological damage and infarct area and promoting cognitive function. <b><i>Conclusion:</i></b> This study provided protective roles of ZGP on cell viability and apoptosis induced by OGD/R. In addition, ZGP played protective roles on neuroinflammation and cognitive function in rats.