The invention provides a traditional Chinese medicine composition for treating porcine pathogenic Escherichia coli diseases. The raw material medicines comprise common andrographis herb, scutellaria baicalensis, white paeony root, cacumen biotae, hempleaf negundo chastetree leaf, the root of Chinese pulsatilla, codonopsis pilosula, radix bupleuri, madder, smoked plum, centipeda minima, hawthorn, pericarpium citri reticulatae, rhizoma polygonati, rhizoma kaempferiae, honeysuckle stem, rhizoma galangae, adenophora tetraphylla, gorgon fruit, corydalis tuber, folium ginkgo, fringed pink and semen raphani. The traditional Chinese medicine composition provided in the invention has the advantages of bacteria resistance, virus resistance, small side effects, zero residue and no drug resistance, is a good substitute of antibiotics and has a wide development prospect in the aspect of treating the porcine pathogenic Escherichia coli diseases.