If none of the previous treatments are helpful or practical, surgery may be recommended. The most common surgical alternative to help erectile dysfunction is to place an implant inside the penis to help achieve an erection. In rare cases, vascular surgery is recommended if the blood vessels of the penis are causing the erectile dysfunction.