We investigated the effect of resveratrol on endothelial and neuronal nitric oxide synthase (eNOS and nNOS) expression in the corpus cavernosum from chronic unpredictable mild stress (CUMS)-exposed rats in order to examine possible role of proinflammatory cytokines, which might play a role on erectile dysfunction (ED). Rats were randomly and equally divided into four groups such as control, control+resveratrol, CUMS and CUMS resveratrol (20 mg/kg/day, i.p/8 weeks). Sucrose intake and forced swimming tests were used to evaluate depressive-like behaviors. nNOS, eNOS expressions, inflammatory markers, corticosterone and testosterone levels were analyzed either in blood samples and/or penile tissues. CUMS-exposed rats displayed depressive-like behaviors, reduced penile nNOS and eNOS expressions, and serum testosterone levels and enhanced serum and penile tissue levels of proinflammatory markers compared to controls. Resveratrol reversed depressive-like behaviors and suppressed serum and penile levels of proinflammatory markers, increased nNOS and eNOS expressions and testosterone levels in CUMS-exposed rats. Resveratrol exerted antidepressant-like effects and protected the development of CUMS-induced impairment of cavernosal eNOS and nNOS expressions associated with ED, which might be related to its anti-inflammatory action.