There's no specific cure for erectile dysfunction, because there are many potential underlying causes; including obesity, diabetes, high alcohol intake, smoking, blood pressure and cholesterol status, general circulatory health, nerve damage, hormone levels, as well as psychological factors. It's more common in men over the age of 40, primarily because these factors listed above become more likely with increasing age. Medicines are available that can help for many men, such as Viagra, however these can sometimes take a few attempts before their effect becomes significant. Living a healthy lifestyle, losing weight, stopping smoking and excessive drinking, taking exercise, and effectively managing any other long term medical conditions will also help.