Insomnia is a subjective experience of decreased sleep quality and duration due to difficulties in falling asleep or sleep persistence, which affects normal social function, while excessive dreaming is associated with insufficient sleep depth and poor sleep quality, which is also one of the manifestations of insomnia, and the two are integrated in treatment. Severe insomniacs generally need the assistance of drugs, commonly used drugs such as benzodiazepines diazepam, eszopiclone, which are often referred to as Valium. Non-benzodiazepine drugs include pyrazolopyrimidines, GABA agonists and their reuptake inhibitors, and other drugs that help with sleep, such as depressants. However, it should be noted that each drug has its own indications and contraindications, and the principle of individualized and on-demand medication should be followed, with low-dose, intermittent, short-term administration as the mainstay, and private drug abuse should be avoided. Non-pharmacological treatment is also an important part of insomnia treatment. Proper understanding of insomnia, the development of good sleep habits, prevention and correction of poor sleep behaviors and concepts, psychological counseling if necessary to eliminate concerns and fears about insomnia and dreaminess. You can also adjust your living habits, choose a suitable pillow, relax your body by soaking your feet before going to bed, etc. In addition, avoid being too full or hungry before bedtime, keep a calm mind and reduce mood swings. Therefore, the treatment of insomnia needs to remove the causative factors, exclude the causes, develop good sleep habits, and then supplement with medication adjustment.