In the present study, we investigated the role of TRPV1 in cerebral ischemia-reperfusion injury through establishing a ischemic stroke model of oxygen and glucose depreciation/reoxygenation (OGD/R) in vitro as well as the effect of TRPV1 in ischemia-reperfusion injury, and OGD/R-induced autophagy along with apoptosis in microglia was also explored in our study. The gene discussed is TRPV1; the disease is brain ischemia.