Caffeine present in coffee improves your blood circulation and relaxes muscles, thus helping you in keeping an erection.