When high blood sugar affects sexual function, it is necessary to control blood sugar and treat the symptoms at the same time, including dietary control, appropriate exercise, and medication (e.g., prostaglandin, sildenafil, etc.). 1. Dietary control: control the total calorie intake, according to the patient’s age, weight, labor intensity, etc. to set the total daily calorie requirements, maintain a low-salt, low-fat, low-sugar diet to control blood glucose. 2. Appropriate exercise: aerobic exercise is recommended, such as jumping rope, jogging, etc., and the recommended weekly exercise time is more than 150 minutes. 3. medication: follow the doctor’s instructions to take acarbose, metformin and other glucose-lowering drugs or injections of insulin therapy, you can follow the doctor’s instructions to use prostaglandin to improve circulation, with erectile dysfunction can also be used to sildenafil, tadalafil and other medications can be used to treat the role of the premise in the sexual stimulation. Diabetic patients with sexual dysfunction are advised to go to the hospital and ask the doctor to make a judgment and give a treatment plan.