The invention discloses a traditional Chinese medicine formula for regulating intestinal tracts of farmed animals and a preparation method thereof. The traditional Chinese medicine formula is composedof the following components of herba houttuyniae, radix sophorae flavescentis, quassia, poplar flowers, liquorice root and radix puerariae. According to the traditional Chinese medicine formula for regulating the intestinal tracts of the farmed animals and the preparation method thereof, the herba houttuyniae, the radix sophorae flavescentis, the quassia, the poplar flowers, the liquorice root and the radix puerariae are adopted, and traditional Chinese medicine leftovers, or rhizomes or leaves of the herba houttuyniae, the radix sophorae flavescentis, the quassia, the poplar flowers, the liquorice root and the radix puerariae are adopted as raw materials, so that the treatment cost of farmers on the farmed animals is saved on; the traditional Chinese medicine formula can replace antibiotics, and the preparation process is simple, green and environment-friendly; the herba houttuyniae, the radix sophorae flavescentis, the quassia, the poplar flowers, the liquorice root and the radix puerariae are adopted as the raw materials to prevent and treat poultry digestive tract and respiratory tract infection caused by various bacteria and viruses such as escherichia coli, salmonella, pasteurella multocida, proteusbacillus vulgaris and staphylococcus of poultry; and the traditional Chinese medicine formula is clinically suitable for poultry mental stunning, feather disorder, two-wing droop, cold shape, cold limbs and piling caused by the above pathogens.