To treat erectile dysfunction (ED), maintain a healthy lifestyle: exercise regularly, eat a balanced diet, and manage stress. Quit smoking, limit alcohol, and maintain a healthy weight. Manage underlying conditions like diabetes, high blood pressure, and low testosterone. Consider medications like Viagra or Cialis under a doctor’s supervision. Therapy can help if psychological factors like anxiety or depression are involved. Pelvic floor exercises strengthen relevant muscles. Natural supplements like L-arginine and ginseng may help, but consult a doctor first. Seek medical advice for persistent or sudden ED, especially with chest pain, dizziness, or other concerning symptoms.