The cellular and molecular mechanisms underlying major depressive disorder are unclear. Here, the authors report cell type- and cortical layer-specific gene expression changes and identify one microglia subpopulation associated with depressive-like behavior in female non-human primates.