While there is no magic supplement or food that can prevent ED or resolve the problem, there's enough evidence to show that your diet and a combination of other lifestyle factors can go a long way in helping you deal with the problem. In general, a healthy diet may help to maintain erectile function, enabling you to have firmer and more reliable erections.
This book focuses on treating erectile dysfunction through a plant-based approach together with intermittent fasting. The Dr Barbara diet which essentially consists of alkaline formulations that can help deal with ED.
Barbara is a famous nutritionist who advocates for alternative medicine. She's a strong believer in the power of food to cure various diseases including erectile dysfunction.