Our study reveals a crucial role of OT D3 neurons in bidirectionally mediating depression-like behaviors, suggesting a potential therapeutic target. Here, OXT is linked to major depressive disorder.