Collectively, our studies elucidate that Dlg1 microglia-specific knockout not only mitigates inflammation-initiated depression, but also stress-induced depression as well as associated microglial activation. Here, DLG1 is linked to major depressive disorder.