Inflammation has been associated with depression, and innate immune receptors, such as the Toll-like receptor (TLR) 2/4 in the medial prefrontal cortex (mPFC), are crucial for chronic stress-induced depression-related behaviors in mice. HMGB1, a putative ligand for TLR2/4, has been suggested to promote depression-related behaviors under acute stress. However, the roles of endogenous HMGB1 under chronic stress remain to be investigated. Here, we found that the cerebroventricular infusion of HMGB1 proteins blocked stress-induced social avoidance and that HMGB1-neutralizing antibodies augmented repeated social defeat stress-induced social avoidance in mice, suggesting the antidepressive-like effect of HMGB1 in the brain. By contrast, the infusion of HMGB1-neutralizing antibodies to the mPFC and HMGB1 knockout in α-CaMKII-positive forebrain neurons attenuated the social avoidance, suggesting the pro-depressive-like effect of HMGB1 released from prefrontal neurons under chronic stress. In addition, repeated social defeat stress induced HMGB1 nuclear export selectively in mPFC neurons, which was abolished in the mice lacking RAGE, one of HMGB1 receptors, suggesting the positive feedback loop of HMGB1-RAGE signaling under chronic stress. These findings pave the way for identifying multiple roles of HMGB1 in the brain for chronic stress and depression.