Although neurons release neurotransmitter before contact, the role for this release in synapse formation remains unclear. Cortical synapses do not require synaptic vesicle release for formation (Verhage et al., 2000; Sando et al., 2017; Sigler et al., 2017; Held et al., 2020), yet glutamate clearly regulates glutamate receptor trafficking (Roche et al., 2001; Nong et al., 2004) and induces spine formation (Engert and Bonhoeffer, 1999; Maletic-Savatic et al., 1999; Toni et al., 1999; Kwon and Sabatini, 2011; Oh et al., 2016). Using rat and murine culture systems to dissect molecular mechanisms, we found that glutamate rapidly decreases synapse density specifically in young cortical neurons in a local and calcium-dependent manner through decreasing N-methyl-D-aspartate receptor (NMDAR) transport and surface expression as well as co-transport with neuroligin (NL1). Adhesion between NL1 and neurexin 1 protects against this glutamate-induced synapse loss. Major histocompatibility I (MHCI) molecules are required for the effects of glutamate in causing synapse loss through negatively regulating NL1 levels in both sexes. Thus, like acetylcholine at the neuromuscular junction (NMJ), glutamate acts as a dispersal signal for NMDARs and causes rapid synapse loss unless opposed by NL1-mediated trans-synaptic adhesion. Together, glutamate, MHCI and NL1 mediate a novel form of homeostatic plasticity in young neurons that induces rapid changes in NMDARs to regulate when and where nascent glutamatergic synapses are formed.Significance Statement The role for neurotransmitter release in synaptogenesis in the central nervous system (CNS) remains unclear. Here, we reconcile conflicting results in the field by showing that glutamate plays an important role in synapse formation by acting as a dispersal signal for NMDARs that is counteracted by trans-synaptic adhesion in intact tissue, similar to the role for neurotransmitter at the NMJ. We also describe a novel form of homeostatic plasticity in young neurons that allows them to respond to changes in activity through surprisingly rapid changes in synapse density. Finally, we show that this plasticity is modulated by immune proteins-MHCI molecules-through negative regulation of NL1 levels, connecting two important synaptic signaling pathways for the first time.