Leading a healthier lifestyle is always recommended. Eating better, staying physically active, losing weight, and maintaining good mental and physical health are all ways to ward off disease or other problems that can lead to erectile dysfunction. 

If you smoke, quitting today could be the best thing you could do to prevent erectile dysfunction.

Improvement in these areas can also help prevent erectile dysfunction itself.