ED can have several causes. It may have psychological roots, like stress or relationship problems. In that case, therapy or couples counseling is a good option for treatment. More often, ED has a physical cause. It often goes hand-in-hand with heart disease, diabetes, and high blood pressure. If the blood flow to the penis gets restricted, a man may have trouble getting or keeping an erection.