Insomnia is a subjective experience of decreased sleep quality and duration due to difficulty falling asleep or staying asleep, which interferes with normal social functioning, and excessive dreaming is also an aspect of insomnia. Treatment of insomnia and excessive dreaming pharmacotherapy includes several categories. Benzodiazepines are the most commonly used sedative, hypnotic and anxiolytic drugs in the clinical treatment of insomnia. They are divided into short-acting, intermediate-acting and long-acting preparations according to their duration of action, and are commonly represented by midazolam, lorazepam and diazepam. Non-benzodiazepines do not affect the normal sleep physiology of healthy people, and are also the preferred clinical hypnotic drugs, commonly represented by zolpidem, dezopiclone, zopiclone, etc. Melatonin receptor agonists can be used for circadian rhythm disorders and sleep with difficulty falling asleep, and are represented by ramelteon. Some insomnia is caused by depression or anxiety, these drugs can improve depressive symptoms and have a sedative effect, the main representative drugs are mirtazapine, trazodone. In summary, there are many drugs for insomnia and dreaminess, but each drug has its own indications and contraindications, so there is no one drug that works best, only one that is most suitable, and the process of taking it should follow the principles of individualization and on-demand medication, and follow medical advice.