Illicit drugs are often used as aphrodisiacs to enhance sexual performance and/or pleasure; however, the available data suggest that most illicit drugs have adverse effects on erection, sexual desire and ejaculation latency in males and that these effects are not fully understood. This study aimed to determine the effect of illicit drug abuse on male sexual function, based on the International Index of Erectile Function (IIEF) score. This descriptive study was conducted at the Alcohol and Substance Research Treatment and Education Center, Ankara, Turkey. Males diagnosed as substance use disorder according to DSM-IV (n = 101) were included as the patient group, and age-matched healthy male volunteers (n = 43) were included as the control group. A 30-item sociodemographic interview form developed by researchers and the 15-item IIEF were administered to all the participants. Data were compared between the patient and control groups. Mean IIEF score was 46.7 ± 3.3 in the patients that used alcohol, 23.7 ± 3.3 in the opioid users, 34.1 ± 5.3 in the ecstasy users, 43.5 ± 4.2 in the cannabis users and 55.3 ± 1.6 in the control group. There was not a significant difference between the alcohol and cannabis users' mean IIEF scores and that in the control group (P > 0.05 and >0.05 respectively), whereas there was a significant difference between the opioid and ecstasy users' mean IIEF scores and that in the control group (P < 0.001 and <0.001 respectively). All IIEF subscale scores in the opioid users were significantly lower than in the control group (P < 0.001). IIEF erectile function, sexual desire and general satisfaction subscale scores were significantly lower in the ecstasy users than in the control group (P < 0.001, <0.005 and <0.001 respectively). In the alcohol users only, the IIEF general satisfaction subscale score was lower than in the control group (P < 0.005).