Insomnia caused by diabetes mellitus can be improved by alleviating or controlling the development of diabetes mellitus, adjusting lifestyle habits, and applying sedative drugs. When diabetic patients are in a state of high blood sugar for a long time, their vegetative nerves will be stimulated accordingly, which may cause nerve damage or dysfunction. Insomnia caused by diabetic patients is not only a problem brought about by the disease, but also the impact caused by the psychological burden is not ruled out. Therefore, to improve the insomnia caused by diabetes, the first thing to do is to regulate the bad mood, adjust the living habits, develop a good routine, insist on going to bed early and getting up early, avoid staying up late. Follow the doctor’s instructions to take medication to relieve and control the symptoms of diabetes, the drugs commonly used in the clinic are glibenclamide, metformin and so on. If insomnia is severe, take sedative drugs such as diazepam and eszopiclone as prescribed by your doctor. A diagnosis of diabetes generally requires lifelong treatment, whether or not it causes related symptoms. Treatment includes improving diet, taking medication, appropriate exercise, and regular monitoring of blood glucose. If necessary, treatment under a doctor’s supervision is required.