Exercise is considered as playing a pivotal role in the modulation of emotional responses. However, a precise circuit that mediates the effects of exercise on depression have yet to be elucidated. Here, a molecularly defined tri‐synaptic pathway circuit is identified that correlates motor inputs with antidepressant effects. With this pathway, initial inputs from neurons within the dorsal root ganglia (DRG) project to excitatory neurons in the gracile nucleus (GR), which in turn connect with 5‐HTergic neurons in the dorsal raphe nucleus (DRN), eventually coursing to excitatory pyramidal neurons within the medial prefrontal cortex (mPFC). Exercise activates this pathway, with the result that depressive‐ and anxiety‐like behaviors in mice are significantly reduced. In addition, it is found that exercise may exert antidepressant effects through regulating synaptic plasticity within this tri‐synaptic pathway. These findings reveal a hindbrain‐to‐forebrain neuronal circuit that specifically modulates depression and provides a potential mechanism for the antidepressant effects of exercise.