The invention discloses a traditional Chinese medicine composition for treating insomnia. The traditional Chinese medicine composition for treating the insomnia is prepared from, by mass, 15-25 parts of lilies, 10-20 parts of white paeony roots, 10-20 parts of tribulus terrestris, 15-25 parts of spina date seeds, 10-15 parts of astragalus roots, 15-25 parts of vines of multiflower knotweed, 10-15 parts of white atractylodes rhizomes, 5-10 parts of longhairy antenoron herb, 20-30 parts of hairyvein agrimonia herb, 1.5-3 parts of ambers, 5-10 parts of polygala tenuifolia, 10-15 parts of albizia flowers, 5-10 parts of fruits of Chinese magnoliavine, 15-25 parts of fruits of Chinese wolfberry, 10-15 parts of polygonatum odoratum, 15-25 parts of nacre mothers of pearls and 5-10 parts of radix bupleuri. By the adoption of multiple cooperative Chinese traditional medicines, the traditional Chinese medicine composition for treating the insomnia has the effects of relieving convulsion, soothing the nerves, nourishing heart, stabilizing the mind, calming the liver, suppressing yang, astringing, inducing astringency and the like and has good treating effects on yin and yang imbalance, disharmony between ying and wei, floating of yang due to yin deficiency, neurasthenia and other causes.