Psychological stress affects the neuroendocrine regulation, which modulates mental status and behaviors. Melatonin, a hormone synthesized primarily by the pineal gland, regulates many brain functions, including circadian rhythms, pain, sleep, and mood. Selective pharmacological melatonin agonist ramelteon has been clinically used to treat mood and sleep disorders. Posttraumatic stress disorder (PTSD) is a psychiatric condition associated with severe trauma; it is generally triggered by traumatic events, which lead to severe anxiety and uncontrollable trauma recall. We recently reported that repeated social defeat stress (RSDS) may induce robust anxiety-like behaviors and social avoidance in mice. In the present study, we investigated whether melatonin receptor activation by melatonin and ramelteon regulates RSDS-induced behavioral changes. Melatonin treatment improved social avoidance and anxiety-like behaviors in RSDS mice. Moreover, treatment of the non-selective MT1/MT2 receptor agonist, ramelteon, markedly ameliorated RSDS-induced social avoidance and anxiety-like behaviors. Moreover, activating melatonin receptors also balanced the expression of monoamine oxidases, glucocorticoid receptors, and endogenous antioxidants in the hippocampus. Taken together, our findings indicate that the activation of both melatonin and ramelteon regulates RSDS-induced anxiety-like behaviors and PTSD symptoms. The current study also showed that the regulatory effects of neuroendocrine mechanisms and cognitive behaviors on melatonin receptor activation in repeated social defeat stress.