Insomnia is a common outcome caused by a variety of factors, and its treatment varies depending on the cause. There is no such thing as the best method, only the one that suits you best. The treatment of insomnia includes two parts: behavioral treatment and medication. 1. Behavioral treatment: It also means eliminating the concern and fear of insomnia symptoms through psychological counseling, correctly understanding insomnia, developing good sleep habits, preventing and correcting bad sleep behaviors and concepts, such as choosing a suitable environment for sleeping, reducing the time in bed, choosing a suitable pillow, and relaxing the body by soaking the feet before going to bed will also play an auxiliary role. In addition, avoid being too full or hungry before bedtime and reduce mood swings. 2, drug treatment: commonly used drugs for benzodiazepines and non-benzodiazepines. Benzodiazepines are also commonly known as Valium drugs, such as diazepam, eszopiclone, etc. Non-benzodiazepines are pyrazolopyrimidines, GABA receptor agonists and their reuptake inhibitors, as well as other drugs that help sleep. Such as antidepressants, etc., should be used under the guidance of a doctor. In conclusion, to treat insomnia, we must first find the causative factors and causes of insomnia, and treat the cause, and then apply medication if necessary, both of which complement each other.