There are many foods that can cause ED e.g. Foods high in sugar, salt, or sodium, caffeine, alcohol. Moreover, foods with a high glycemic index (GI) spike blood sugar levels quickly after eating, which may lead to decreased blood flow to your penis.