The invention discloses a medicine for treating infertility. The medicine is composed of the following raw materials: 25-35g of radix rehmanniae recen, 15-25 g of prepared rhizomes of rehmannia, 15-25g of pulp of dogwood fruits, 15-25 g of Chinese yams, 8-12g of polygonatum sibiricum, 12-18g of radix angelicae sinensis, 12-18 g of achyranthes bidentata, 12-18 g of cortex albiziae, 12-18 g of salviae miltiorrhizae, 12-18 g of semen cuscutae, 12-18 g of flatstem milkvetch seeds, 12-18 g of fructus lycii, 12-18g of pericarpium citri reticulatae, 12-18g of raspberries, 12-18g of caulis spatholobi,12-18g of radix paeoniae rubra, 2-4g of scutellaria baicalensis, 4-8g of licorice, 8-12g of eucommia ulmoides, and 8-12g of schisandra chinensis. A preparation method comprises the following steps: preparing the raw materials according to the ratio, performing uniform stirring, putting stirred material into a container, adding 1000ml of water, performing soaking for 90-120 minutes, performing decocting with big fire, performing decocting with small fire after boiling, filtering out the liquid medicine by using a filter screen when 300-400mL of the liquid medicine is left in the container, andtaking the liquid medicine in a warm manner. The traditional Chinese medicine composition is prepared from various traditional Chinese medicinal materials, contains various medicinal components for promoting blood circulation to remove blood stasis and clearing away heat and toxic materials, and is easy to absorb, remarkable in curative effect, safe and free of toxic and side effects.