Quitting drinking itself is not likely to cause erectile dysfunction. However, long-term heavy alcohol consumption can contribute to erectile dysfunction in several ways.

Alcohol can affect the nervous system and interfere with the signals that control sexual arousal and response. It can also decrease blood flow to the penis, which can make it difficult to achieve or maintain an erection.

Chronic heavy alcohol consumption can also damage the liver and impair liver function, which can lead to hormonal imbalances that can contribute to erectile dysfunction.

Additionally, alcohol use can contribute to a number of physical and psychological health problems that can increase the risk of erectile dysfunction, such as high blood pressure, diabetes, anxiety, and depression.

If you are experiencing erectile dysfunction, it is important to talk to your healthcare provider. They can help evaluate your symptoms and determine whether any underlying conditions or medications may be contributing to the erectile dysfunction. They can also provide guidance on managing your symptoms and may recommend lifestyle changes or treatments to help alleviate erectile dysfunction.