Here, authors show estrogen-driven Egr1 controls chromatin accessibility sex-dependently, driving gene expression, structural plasticity, and anxiety- & depression-related behaviour. Here, EGR1 is linked to depressive disorder.