The invention discloses a feed additive for enhancing the immunity of piglets and improving digestive tract functions. The feed additive disclosed by the invention is prepared from Chinese herbal medicines and feed components, wherein the Chinese herbal medicines and the feed components comprise xylanase, clostridium butyricum, bacillus subtilis and bacillus licheniformis, yeast culture, chitosan, taurine, astragalus polysaccharides, carrier montmorillonite and soybean small peptides; the Chinese herbal medicines and the feed components comprise the components in parts by mass: 100 to 130 parts of the xylanase, 100 to 120 parts of the clostridium butyricum, bacillus subtilis and bacillus licheniformis, 90 to 130 parts of the yeast culture, 18 to 21 parts of the chitosan, 180 to 220 parts of the taurine, 10 to 12 parts of the astragalus polysaccharides, 450 to 500 parts of the carrier montmorillonite and 215 to 300 parts of the soybean small peptides. The feed additive disclosed by the invention has the beneficial effects that the raw materials are easy to obtain, the feed additive is suitable for batch production; a preparation method is simple and the feed additive capable of improving the immunity and solving the problems in a plurality of aspects of the piglets is researched by a formula; the adaptability of the piglets to the outside is improved, the immunity of organisms is increased and the diarrhea and death rate are reduced, so that extremely great benefits are brought to livestock farms.