The invention belongs to the field of traditional Chinese medicine, and discloses herbal decoction for treating insomnia. The herbal decoction is prepared from the following TCM raw materials in parts by weight: 10-20 parts of prepared rhizome of rehmannia, 15-25 parts of Chinese yam, 5-15 parts of Indian buead, 5-15 parts of alisma, 10-20 parts of Chinese angelica, 10-15 parts of rhizoma anemarrhenae, 20-40 parts of spina date seed, 10-20 parts of cortex albiziae, 10-20 parts of tuber fleeceflower stem, 15-25 parts of mistletoe, 20-40 parts of drgonsbones, 10-20 parts of polygala tenuifolia, 15-25 parts of curcuma aromatica, 5-10 parts of coptis chinensis, 5-10 parts of liquorice, 10-20 parts of astragali radix, 5-15 parts of rhizome pinelliae preparatum, 10-15 parts of dried orange peel, 5-15 parts of rosa rugosa, 5-15 parts of tree peony bark, 10-20 parts of radix achyranthis bidentatae, 10-20 parts of polygonum multiflorum, 10-20 parts of shelled cedar seed and 10-20 parts of radix paeoniae alba. The herbal decoction prepared by dialectical compatibility of the traditional Chinese medicines obviously improves the difficulty in falling asleep, difficulty in maintaining sleep, dysphoria, soreness and weakness of waist and knees, mental and physical fatigue and other symptoms of a patient.