P2X7 receptor inhibition ameliorates dendritic spine pathology and social behavioral deficits in Rett syndrome mice. Here, P2RX7 is linked to atypical Rett syndrome.