Medications can cause ED, especially drugs you might take to control blood pressure or depression (antidepressants) (see Impotence/Erectile Dysfunction for a list of medications that may cause ED). Anti-ulcer drugs can be a cause, as can alcohol or drug abuse. ED is a side effect.