Our study provides evidence that neuronal CD47 overexpression results in synaptic pruning defects and is involved in the pathogenesis of ASD, while also playing a beneficial role in mitigating excessive synaptic loss in Alzheimer’s disease. Here, CD47 is linked to Alzheimer disease.