In the current study, we find that surgery exacerbates post‐stroke demyelination and worsens neurological function by promoting infiltration of CD8+ T cells and the RIPK1 activation in microglia is critical for the enhanced CD8+ T‐cell activation in PIS. This evidence concerns the gene CD8A and Stroke.