Erectile dysfunction is a medical condition in which a man is unable to achieve or maintain an erection during sexual activity. It can be caused by various factors such as stress, medication side effects, hormonal imbalances, or underlying health conditions like diabetes or heart disease. Treatment options may include lifestyle changes, medications, or counseling.