This study used a mouse model to show that early-life adversity causes lasting loss of dendritic spines and postsynaptic connections in the prelimbic cortex, which correlates with impaired working memory. Activating the affected neurons with DREADDs improved the memory performance of the adversity-exposed mice.