The invention discloses a medicinal preparation used for protecting the livestock and poultry from diarrhea, which comprises the following raw materials by weight ratio: 1-20 parts of Radix Astragali, 1-20 parts of bighead atractylodes rhizome, 1-20 parts of licorice, 2-40 parts of white peony root, 20-150 parts of Limonite, 20-150 parts of red halloysite, 2-20 parts of pomegranate rind, 20-100 parts of alum, 3-30 parts of radix bupleuri, 4-10 parts of cimicifuga foetida, 1-20 parts of coptis and 0-3 parts of diphenoxylate. The components of the medicinal preparation are direct and mutual synergism, and has efficacy of supplementing the center and boosting qi, lifting up Yang and depression, antidarrhea with astringent, inhibiting smooth muscle spasm of gastrointestinal tract and alleviating peristaltic of gastrointestinal tract, and is capable of rapidly recovering the functions of gastrointestinal tract, thereby, the medicinal preparation has an obvious function of weight increasing.