We found that SARM1 deletion promoted neuronal preservation in the peri-infarct cortex and alleviated axonal degeneration, thereby improving behavioral performance after stroke. Here, SARM1 is linked to Stroke.