Diseased states like atherosclerosis, high blood pressure, diabetes, neurological disease and some operations can cause the onset of erectile dysfunction. Rectal surgeries, prostate cancer surgery, lower spine or neuro operations can also cause ED. Blood pressure meds, anti depressants and other medications may have an impact on ED. Smoking can also cause it, and is even worse for diabetic patients, as it increases their risk even more.