Although a clinical connection between pain and depression has long been recognized, how these two conditions interact remains unclear. Here we report that both mechanical allodynia and depression-like behavior were significantly exacerbated after peripheral nerve injury in Wistar-Kyoto (WKY) rats, a genetic variation of Wistar rats with demonstrable depression-like behavior. Administration of melatonin into the anterior cingular cortex contralateral to peripheral nerve injury prevented the exacerbation of mechanical allodynia with a concurrent improvement of depression-like behavior in WKY rats. Moreover, there was a lower plasma melatonin concentration and a lower melatonin receptor expression in the anterior cingular cortex in WKY rats than in Wistar rats. These results suggest that there exists a reciprocal relationship between mechanical allodynia and depression-like behavior and the melatoninergic system in the anterior cingular cortex might play an important role in the interaction between pain and depression.