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. The gene discussed is CD8A; the disease is stroke disorder.