To correct insomnia, we must first find the causative factors and causes of insomnia, and treat the causes, establish a good biological clock, combine behavioral therapy and psychological counseling, and apply medication if necessary. Specific details are as follows: 1. Behavioral therapy and psychological counseling: The purpose of psychological counseling is to eliminate the concern and fear of insomnia symptoms. The correct understanding of insomnia, the development of good sleep habits, prevention and correction of poor sleep behavior and concepts, such as the choice of a suitable sleep environment, reduce or eliminate daytime naps, etc., the choice of a suitable pillow, soak feet before bed to relax the body will also play a supporting role. 2, drug therapy: drug therapy follows the principle of individualization and on-demand medication, but we should pay attention to drug dependence and the rebound of symptoms from drug withdrawal, commonly used drugs for benzodiazepines (diazepam, eszopiclone, etc.) and non-benzodiazepines (such as pyrazolopyrimidines, GABA receptor agonists and their reuptake inhibitors, etc.) and other drugs that help sleep (such as antidepressants), etc. Therefore, the treatment of insomnia consists of both behavioral and pharmacological treatment, which needs to be individualized and chosen according to each case.