The invention relates to a traditional Chinese medicine composition for treating endometritis of sheep. The traditional Chinese medicine composition comprises the following components by weight: 20-30 parts of climbing groundsel herb, 30-40 parts of radix sophorae flavescentis, 30-40 parts of scutellaria baicalensis, 30-40 parts of coptis root, 30-40 parts of bighead atractylodes rhizome, 30-40 parts of dandelion, 30-40 parts of herba epimedii, 50-70 parts of motherwort herb, 50-70 parts of codonopsis pilosula, 50-70 parts of herba aristolochiae, 50-70 parts of angelica sinensis, 30-40 parts of cowherb seed, 20-30 parts of pollen typhae, 20-30 parts of astragalus mongholicus and 20-30 parts of liquorice. The invention also discloses a preparation method of the traditional Chinese medicine composition for treating endometritis of sheep. By effectively combining the functions of four core medicines including angelica sinensis, motherwort herb, codonopsis pilosula and herba aristolochiae and eleven auxiliary medicines such as climbing groundsel herb, and by using the preparation method, the contraction of uterine smooth muscles is strengthened, the heat clearing, bacteriostatic and anti-inflammatory effects are achieved, the immunity of the organism is improved, and the pesticide effect of stopping bleeding and easing pain is realized, so that the cure rate of endometritis of sheep is effectively improved, the reproductive capacity of the sheep is enhanced, and financial loss of farmers is reduced. The traditional Chinese medicine composition has great significance for promoting the healthy development of sheep industry.