The clinical symptoms of heart and gallbladder qi deficiency type insomnia are often manifested as the patient’s restlessness, dreaminess and wakefulness, timidity and palpitations, and easy to be frightened in case of trouble, accompanied by shortness of breath, spontaneous sweating, tiredness and fatigue, a light tongue and a thin string pulse. The main treatment is to benefit qi, sedation and tranquilization, and the formula is supplemented with An Shen Ding Zhi Wan and Sour Date Ren Tang. An Xin Ding Zhi Wan focuses on calming and tranquilizing the mind, while Sour Jujube Ren Tang focuses on nourishing the blood, clearing heat and eliminating annoyance. The combination of the two benefits the qi of the heart and gallbladder, clears the deficiency heat of the heart and gallbladder, and calms the mind. In this formula, ginseng benefits the Qi of the heart and gallbladder; Fu Ling, Fu Shen and Yuan Zhi have the effect of resolving phlegm and tranquilizing the heart; Long Tooth and Shi Calamus have the effect of calming, opening the orifice, and condensing the mind; Sour Date Palm has the effect of nourishing the liver, tranquilizing the mind and calming the heart; Zhi Mu has the effect of relieving heat and removing annoyance; Chuan Xiong has the effect of nourishing the blood and tranquilizing the mind. If the palpitation is very, alarming and restless, you can add raw keel, raw oyster and a little vermilion on the basis of the above.