Neuroligins are postsynaptic cell adhesion molecules that are involved in synapse function and autism spectrum disorder. The authors show that NLG2-mediated GABAergic transmission at the thalamic reticular nucleus-thalamic circuit is a common mechanism underlying epileptic seizures and ASD.