Weakness of penile erection generally refers to erectile dysfunction. Erectile dysfunction can be treated with medication, surgery, and general measures as prescribed by the doctor. 1. Drug treatment: When patients have erectile dysfunction, they can be treated with phosphodiesterase 5 inhibitors such as sildenafil citrate tablets and tadalafil tablets as prescribed by the doctor. For erectile dysfunction caused by androgen deficiency, it can be treated with testosterone undecanoate pills, testosterone propionate tablets and other androgenic drugs as prescribed by the doctor. For patients who are not obvious with oral medication, injectable medications such as prostaglandin injection and phentolamine injection can be used. 2. Surgery: Patients who are not effective in drug treatment can take surgical treatment, including penile vascular surgery, penile prosthesis implantation surgery and other surgical methods. 3. General measures: patients with erectile dysfunction should improve their lifestyles, exercise properly, eat a reasonable diet, and quit smoking and drinking. Patients can have psychological treatment, which can help the recovery of sexual function. Erectile dysfunction patients should be timely medical treatment, patients should follow the doctor’s instructions to use drugs, do not unauthorized use of drugs.