Taken together, our results indicate that the expression of SARM1 in PVIs plays a vital role in the pathogenesis of autism spectrum disorder. Here, SARM1 is linked to autism spectrum disorder.