Diabetic patients with insomnia need to clarify the cause of the disease, which can be adjusted through lifestyle and other adjustments, and medication (e.g., eszopiclone, etc.) can be administered if necessary. Diabetic patients should pay attention to improve their lifestyle, maintain a positive and optimistic mindset, and avoid excessive stress. Appropriate sports, such as jogging, aerobics, etc., obese patients should pay attention to reduce weight. To create a good sleep environment, avoid overeating and strenuous exercise before going to bed. If insomnia is serious and can not be relieved, you should consult a doctor in time, under the guidance of the doctor to clarify the cause of the disease, if necessary, take drugs such as eszopiclone to improve the symptoms of insomnia, at the same time, take glucose-lowering drugs on time, such as metformin and so on, to control the blood glucose within the normal range. Diabetic patients with insomnia should consult a doctor in time, and must use medication under the guidance of a doctor, not self-medication.