We aimed to evaluate the effect of acetylsalicylic acid (ASA) treatment on diabetes-induced erectile dysfunction. Adult male Sprague-Dawley rats were divided into four groups as follows: (i) control (C), (ii) diabetic (D), (iii) ASA-treated control (C+ASA) and (iv) ASA-treated diabetic (D+ASA) groups. In groups 2 and 4, diabetes was induced by injection of 35 mg kg(-1) streptozotocin. ASA (100 mg kg(-1) day(-1), orally) was administrated to rats in groups 3 and 4 for 8 weeks. Both intracavernosal pressure (ICP) and mean arterial blood pressure (MAP) were measured in in vivo studies. In organ bath, the relaxation responses to acetylcholine (ACh), electrical field stimulation (EFS) and sodium nitroprusside were tested in corpus cavernosum (CC) strips. The mRNA expression for neuronal nitric oxide synthase (nNOS) was calculated using reverse transcription polymerase chain reaction technique. In in vivo experiments, diabetic rats displayed reduced ICP/MAP values, which were normalised with ASA treatment. The relaxant response to high-dose ACh and EFS at low frequencies (1-8 Hz) in CC strips from the D+ASA group were significantly higher when compared to the D group. Treatment with ASA normalised the raised mRNA expressions of nNOS in diabetic penile tissues. ASA may be involved in mRNA of protein synthesis of NO released from nonadrenergic and noncholinergic cavernosal nerve in diabetes.