Q: What is erectile dysfunction? A: When a man can’t get an erection to have sex or can’t keep an erection long enough to finish having sex, it’s called erectile dysfunction or impotence. Erectile dysfunction can occur at any age, but it is more common in men older than 65.