Emerging evidence indicates that attention deficits, which are frequently observed as core symptoms of neuropsychiatric disorders, may be elicited by early life stress. However, the mechanisms mediating these stress effects remain unknown. The prefrontal cortex (PFC) has been implicated in the regulation of attention, including dysfunctions in GABAergic transmission, and it is highly sensitive to stress. Here, we investigated the involvement of neuroligin-2 (NLGN-2), a synaptic cell adhesion molecule involved in the stabilization and maturation of GABAergic synapses, in the PFC in the link between stress and attention deficits. First, we established that exposure of rats to stress during the peripubertal period impairs attention in the five-choice serial reaction time task and results in reductions in the GABA-synthesizing enzyme glutamic acid decarboxylase in different PFC subregions (ie, prelimbic (PL), infralimbic, and medial and ventral orbitofrontal (OFC) cortex) and in NLGN-2 in the PL cortex. In peripubertally stressed animals, NLGN-2 expression in the PL and OFC cortex correlated with attention measurements. Subsequently, we found that adeno-associated virus-induced rescue of NLGN-2 in the PFC reverses the stress-induced attention deficits regarding omitted trials. Therefore, our findings highlight peripuberty as a period that is highly vulnerable to stress, leading to the development of attention deficits and a dysfunction in the PFC GABAergic system and NLGN-2 expression. Furthermore, NLGN-2 is underscored as a promising target to treat stress-induced cognitive alterations, and in particular attentional deficits as manifested by augmented omissions in a continuous performance task.