Diabetes may affect sexual function. It is mainly caused by autonomic neuropathy, psychological factors, and the effects of medications. Patients with diabetes mellitus often have a cluster of metabolic disorder symptoms, manifested by polyuria, polydipsia, polyphagia, and weight loss, often involving multiple systems. Chronic complications include microangiopathy, neuropathy, and macrovascular disease. If it is the early stage of diabetes may not have an effect on sexual function, if the history of diabetes is long and the condition is serious, it may have an effect on sexual function. When diabetic autonomic neuropathy occurs, the genitourinary system may be affected, then it will lead to impotence, premature ejaculation, loss of libido thus affecting sexual function. Diabetic patients may have psychological problems as well as the use of some hypoglycemic drugs, which may also have some impact on sexual function. If diabetic patients have sexual function problems, they should consult a doctor in time and under the guidance of the doctor.