The high incidence of erectile dysfunction (ED) in diabetes highlights a need for effective treatment strategies. Resveratrol, an activator of silent information regulator 2-related enzymes 1 (sirtuin1, SIRT1), has received attention for its valuable effects in cancer, neurodegenerative diseases, longevity and cardiovascular disease. To explore the effects of resveratrol in diabetes-induced ED, resveratrol was administered to rats with streptozocin (65 mg kg 21 )-induced diabetes. Erectile function, cavernous structure, tissue protein expression of silent information regulator 2-related enzymes 1 (sirtuin1, SIRT1), p53 and forkhead transcription factor O 3a (FOXO3a), superoxide dismutase (SOD) activity and malondialdehyde (MDA) levels in the corpora cavernosa were studied. We found that SIRT1 was expressed in cavernosal tissue, and it was downregulated in the corpora of diabetic rats. The administration of resveratrol upregulated the expression of SIRT1 and restored erectile function. In contrast, resveratrol downregulated the expression of p53 and FOXO3a, which regulate apoptosis and oxidative stress. Furthermore, the resveratrol-treated group showed an improvement in smooth muscle content, SOD activity and MDA levels when compared with the diabetic group. Therefore, the ability of resveratrol to improve diabetes-induced ED is likely related to its activation of SIRT1 expression, thus causing the suppression of apoptosis and resistance towards oxidative stress.