ED can be caused by various factors, including physical conditions such as cardiovascular disease, diabetes, hormonal imbalances, and psychological factors like stress, anxiety, or depression.