Erectile dysfunction (ED) occurs when a man is unable to get or sustain an erection firm enough for sexual intercourse. Intermittent ED is common. Many men experience occasional ED. It is generally caused by stress, exhaustion, or similar causes. Occasional ED should not be a cause of concern.