The invention discloses a formula and preparation method of pig fodder capable of preventing respiratory diseases. The pig fodder capable of preventing the respiratory diseases is prepared from, by mass, 70-90 parts of corn flour, 30-50 parts of wheat bran, 50-70 parts of flour, 10-30 parts of soybean meal, 40-60 parts of grass powder, 10-20 parts of radix polygonati officinalis powder, 3-9 partsof platycodon grandifloras powder, 2-4 parts of limestone powder, 5-10 parts of cortex mori powder, 20-30 parts of rice bran, 5-13 parts of fructus crataegi, 5-10 parts of xylanase, 0.6-1.8 parts of seminase, 2-4 parts of cellulase, 3-15 parts of protease, 2-5 parts of amylase, 20-30 parts of Chinese medicinal additives, 1.5-2.3 parts of an amino acid composition, 10-20 parts of a nutrient additive, 0.2-0.6 part of edible salt, 8-12 parts of sweet potato vine leaves and 6-13 parts of a fruit-flavor additive. The pig fodder has the advantages that the respiratory environment of the respiratorytract is improved, and correspondingly occurrence of the respiratory diseases is reduced; the growth speed of pigs is increased, the immunity of the pigs is improved, the illness probability of the pigs during growth is decreased, and meanwhile the quality of pork is also improved; by adding different kinds of Chinese herbal components capable of boosting the immunity into the Chinese medicinal additives, the immunity of the pigs can be effectively boosted.