What causes erectile dysfunction during intercourse? How can I cure it?

Erectile dysfunction during coitus is caused by erectile dysfunction, which may be related to neurological, endocrine, vascular, penile corpus cavernosum and psychological factors, and it can be treated by using medication and improving lifestyle habits.
Erectile dysfunction is a disease in which the penis continuously fails to achieve or maintain an adequate erection. Factors such as diabetes leading to peripheral neuropathy, androgen deficiency, atherosclerosis, stress, obesity, smoking and drinking, and other bad lifestyle habits can lead to erectile dysfunction.
For treatment, if it is caused by diabetes leading to peripheral neuropathy, then drugs such as metformin and insulin should be used to control blood sugar.
If it is due to androgen deficiency, then medications such as testosterone undecanoate gel pills can be used for treatment.
If it is due to atherosclerosis, then drugs such as simvastatin and aspirin should be used to target the original cause.
If it is caused by mental tension, then it can be treated with drugs such as sildenafil; if it is caused by abnormalities in the penile corpus cavernosum, then it can be treated with prostaglandins or through penile prosthesis implantation surgery; in addition, patients should also lose weight, quit smoking and drinking, and exercise more.
If erectile dysfunction occurs, please follow the doctor’s instructions for treatment. Do not self-medicate.