Problems during any stage of the erection process can result in ED. An erection occurs when your penis receives more blood. When the muscles in the blood vessels tighten and the accumulated blood can flow out through the penile veins, an erection is over.