Medications like antihypertensive drugs, antidepressant, antihistamine drugs and diuretics can cause erectile dysfunction. Therefore, it is important for the doctor to check with the patient on the medications that he may be taking.