Diabetes mellitus caused by inactivity (erectile dysfunction), after the control of blood sugar, most can be self-recovery. Clinically, there are also a few patients who cannot recover, and it still needs to be judged on an individual basis. Diabetes mellitus can lead to symptoms such as excessive drinking, excessive eating, excessive urination and weight loss. Prolonged high blood sugar and failure to effectively control, may affect sexual function. Some male patients may experience erectile dysfunction. After scientific and standardized treatment to control blood glucose within a reasonable range, the symptoms of most patients can be gradually recovered. Clinically, there are some patients who still have erectile dysfunction despite good glycemic control. In this case, we can consider the application of dysfunctional drugs for symptomatic treatment or psychotherapy. It is recommended that diabetic patients seek timely medical treatment, do not self-medication.