Insomnia is a decrease in the quality and duration of sleep due to difficulties in falling asleep or sleeping continuously. Severe insomnia will affect brain function, and the treatment includes two aspects. 1.Behavior therapy and psychological counseling: correct understanding of insomnia, the development of good sleep habits, prevention and correction of poor sleep behavior and concepts, psychological counseling to eliminate concerns and fears about insomnia. Such as choosing a suitable sleeping environment, reducing the time in bed, getting up immediately when you can’t sleep, developing the habit of getting up at the same time every day no matter what time you sleep, reducing or eliminating daytime naps, etc. Choosing a suitable sleeping posture and relaxing your body by soaking your feet before bedtime will also play an auxiliary role. In addition, avoid being too full or hungry before bedtime, reduce mood swings, and maintain a calm mind. 2.Medication: If behavioral treatment fails, medication can be used. Commonly used drugs are benzodiazepines (diazepam, eszopiclone, etc.) and non-benzodiazepines (such as zolpidem tartrate, zopiclone, zaleplon, etc.) as well as other drugs that help sleep (such as antidepressants, atypical anti-seminal drugs). However, it is important to pay attention to drug dependence and rebound of symptoms when stopping medication, and to follow the principle of individualized and need-based medication. Therefore, when insomnia is present, it is important to look for the causative factors and causes of insomnia symptoms so as to treat the cause, and when not, to actively seek medical attention and carry out reasonable and effective treatment under the guidance of a doctor.