The invention discloses a Chinese traditional medicine composition for preventing and treating pig constipation. The Chinese traditional medicine composition is composed of, by weight, 10-70 parts of okra, 10-80 parts of fenugreek, 2-10 parts of radix ophiopogonis, 5-10 parts of salvia chinensis, 2-10 parts of radix polygonati officinalis, 2-10 parts of roots of Chinese trichosanthes, 2-10 parts of peppermint, 2-10 parts of roxburgh anoectochilus terminal buds, 2-10 parts of seeds of dodder, 2-10 parts of poria cocos, 2-10 parts of fructus liquidambaris, 2-10 parts of mulberry fruits and 17-20 parts of anemarrhenae. Material combination of the medicine is free of incompatibility, the occurrence rate of the pig constipation can be reduced obviously, good preventing and treating effects on the constipation are achieved, no toxic and side effect exists, using is safe, and no hazardous drug residue exists.