The invention discloses a traditional Chinese medicine composition for treating infertility and a preparation method of the traditional Chinese medicine composition. The traditional Chinese medicine composition is prepared from the following raw materials: codonopsis pilosula, semen cuscutae, rhizoma atractylodis macrocephalae stir-fried with bran, poria cocos, Chinese yam, mistletoe, curcuma aromatic, radix dipsaci, parched white peony root, salted eucommia ulmoides, liquorice, radix rehmanniae praeparata, herba epimedii and prepared lumbricus in combination. The traditional Chinese medicine composition has accurate curative effects on threatened abortion of female patients, metrorrhagia and metrostaxis, morbid leukorrhoea, qi deficiency and blood stasis, adverse main and collateral channels, deficiency of vital energy and blood, unsmooth fallopian tubes, meridian disharmony, amenorrhea, dysmenorrhea, abnormal leukorrhea, endometriosis, hypoplasia of uterus, habitual abortion, pregnancy blood leakage, threatened abortion, threatened abortion, metrorrhagia and metrostaxis, irregular menstruation, metrorrhagia embolism in blood and the like.