The invention discloses a traditional Chinese medicine composition for preventing and treating diarrhea of suckling piglets. The traditional Chinese medicine composition mainly includes the following raw materials in parts by weight: 16 parts of Pulsatilla pulsatillae, 8 parts of Andrographis paniculata, 8 parts of Sophora flavescens, 8 parts of Scutellaria baicalensis, and 8 parts of Radix Radix , 10 parts of Daqingye, 6 parts of Astragalus, 4 parts of Codonopsis, 6 parts of Cortex Phellodendri, 5 parts of Poria, 6 parts of Qinpi, 6 parts of Myrobalan, 4 parts of white peony, 4 parts of Akebia, 4 parts of woody root, 6 parts of licorice. The invention adopts the pure traditional Chinese medicine composition, and various medicines are used in combination, and has many functions such as clearing heat and detoxifying, antibacterial and anti-inflammatory, invigorating the middle and replenishing qi, invigorating the spleen and promoting body fluid, invigorating qi and promoting yang, promoting dampness and regulating qi, promoting milk and passing through the blood-milk barrier. It is suitable for sucking sows, and can prevent and treat diarrhea in suckling piglets caused by various reasons, and reduce the incidence of piglets. The traditional Chinese medicine of the present invention is applied to sows to prevent and treat diarrhea in suckling piglets with simple dosage form and administration route, has little stress, is non-toxic, harmless and has no residue, and meets the needs of large-scale breeding production.