Insomnia is divided into liver fire disturbing the heart, phlegm heat disturbing the heart, heart and spleen deficiency (weakness of the heart and spleen organs), heart and kidney failure (heart fire, kidney yin deficiency, heart and kidney physiological dysfunction) and heart and gallbladder qi deficiency, etc., which need to be diagnosed and treated. 1. Liver fire disturbing the heart: insomnia and dreams, or even sleepless nights, irritability, with red eyes and tinnitus, bitter mouth. The treatment should be to dredge the liver and diarrhea the fire, the formula is gentian diarrhea liver soup plus subtractions. 2. Phlegm-heat disturbing the heart: heartburn and chest tightness, accompanied by bitter mouth and heavy head. Treatment is to clear away phlegm-heat, harmonize the middle and tranquilize the mind, and the formula is Huanglian Warm Gallbladder Tang plus subtractions. 3. Deficiency of heart and spleen: difficulty in falling asleep, easy to wake up with dreams, palpitation (rapid heartbeat, often accompanied by panic), forgetfulness, fatigue (mental exhaustion, weakness), the treatment is to tonify the heart and spleen, nourish the blood and calm the mind (nourish the blood to calm the mind), the formula is to use Gui Spleen Tang with additional subtractions. 4. Lack of communication between the heart and kidney: difficulty in sleeping, panic and palpitation, dizziness and tinnitus, soreness and weakness of the waist and knees, dryness of the mouth and throat in men, spermatorrhea in men, and menstrual irregularities in women. The treatment is to nourish yin and reduce fire (nourish yin essence and reduce fire), and the formula is Six-flavored Di Huang Pill and Jiaotai Pill with additions and subtractions. 5. Deficiency of heart and gallbladder qi: restlessness of the heart and mind, easy to be frightened, accompanied by shortness of breath and spontaneous sweating (involuntary sweating during the daytime, aggravated by movement), with a pale tongue. The treatment should be to calm the mind and sedate fright, and the formula is to add or subtract An Shen Ding Zhi Pill and Sour Zao Ren Tang. Specific medication should be taken under the guidance of a professional Chinese medicine practitioner.