Using in vivo and in vitro stroke models, we identified that MeCP2 lactylation acted as an intrinsic neuroprotective mechanism in stroke. Here, MECP2 is linked to Stroke.