The present invention discloses a herbal extract for treating damp-toxin pains and a preparation method of the herbal extract. The herbal extract is characterized by being prepared from the followingraw materials in parts by weight: 50-100 parts of rosemary, 50-100 parts of radix et rhizoma rhodiolae crenulatae, 35-50 parts of safflowers, 20-30 parts of myrrh, 20-30 parts of frankincense, 50-80 parts of radix polygalae, 40-60 parts of herba gynostemmatis pentaphylli, 100-120 parts of magnetite, 200-300 parts of silkworm excrement, 200-250 parts of mulberry leaves, 100-150 parts of chrysanthemum, 100-200 parts of moxa floss, 30-50 parts of red paeony root, 25-35 parts of rhizoma chuanxiong, 100-150 parts of ginkgo leaves, 50-80 parts of kudzuvine root, 30-50 parts of drug sweetflag rhizome, 100-160 parts of polygonum multiflorum vine leaves, 35-50 parts of sharpleaf galangal fruits, 20-30 parts of spina date seeds, 100-200 parts of millet and 500-1,000 parts of a filler, water is addedinto the raw materials of the frankincense, radix polygalae, rhizoma chuanxiong, kudzuvine root and spina date seeds for decoction, filtering is conducted to remove dregs, the millet is added into the obtained filtrate, the filtrate is heated and concentrated into paste to wrap the millet and drying is conducted; and after the other medicines are crushed, the crushed medicines are mixed with themillet, and the mixture is loaded into a cloth bag to be sealed. The herbal extract is reasonable in the formula, improves sleep quality, strengthens the brain, benefits intelligence and promotes a memory function, and is suitable for children and primary and secondary school students to use.