Here the authors show that Lrfn2 regulates excitatory synapse maturation and maintenance, and that Lrfn2 knockout mice exhibit autism-like behaviours as well as enhanced learning and memory. Here, LRFN2 is linked to autism.