There are many causes of erectile dysfunction, including vascular, neurologic, local factors, hormonal, drug induced, psychogenic, stress, relationship issues, depression, and systemic illness. Therefore, it is possible that erectile dysfunction can be caused by a neurological disease such as epilepsy