Objective To explore the mechanism of chromobox 7 (CBX7)-mediated nuclear factor E2-related factor 2 (Nrf2)/hemeoxygenase-1 (HO-1) signaling pathway in the cerebral ischemia/reperfusion (I/R) injury. Methods The experimental wild-type (WT) and CBX7-/- mice were used to establish cerebral I/R models using the middle cerebral artery occlusion (MCAO) surgery to determine CBX7 levels at different time points after MCAO injury. For all mice, neurological behavior, infarct size, water content, and oxidative stress–related indicators were determined, and transferase (TdT)-mediated dUTP-biotin nick-end labeling (terminal deoxynucleotidyl transferase (TdT)-mediated dUTP nick-end labeling (TUNEL)) staining method was employed to observe cell apoptosis, while Western blot to measure the expression of CBX7 and Nrf/HO-1 pathway-related proteins. Results At 6 h, 12 h, 24 h, 3 days, and 7 days after mice with MCAO, CBX7 expression was gradually up-regulated and the peak level was reached at 24 h. Mice in the WT + MCAO group had increased infarct size, with significant increases in the modified neurological severity scores and water content in the brain, as well as the quantity of TUNEL-positive cells. For the oxidative stress-indicators, an increase was seen in the content of MDA (malondial dehyde), but the activity of SOD (superoxide dismutase) and content of GSH-PX (glutathione peroxidase) and CAT (catalase) were decreased; meanwhile, the protein expression of CBX7, HO-1, and nuclear Nrf2 was up-regulated, while the cytoplasmic Nrf2 was down-regulated. Moreover, CBX7 knockout attenuated I/R injury in mice. Conclusion Knockout of CBX7 may protect mice from cerebral I/R injury by reducing cell apoptosis and oxidative stress, possibly via activating the Nrf2/HO-1 pathway.