The invention discloses a pharmaceutical composition for preventing and treating premature ovarian failure and improving osteoporosis and a preparation method of the pharmaceutical composition, relates to the technical field of traditional Chinese medicine compositions, and solves the technical problem that the purposes of resisting aging and prolonging life cannot be fundamentally achieved by only tonifying kidney or nourishing ovary when the premature ovarian failure and the osteoporosis are treated at present. The traditional Chinese medicine composition is prepared from the following raw materials: soy isoflavone, herba epimedii, glossy privet fruit, radix polygoni multiflori preparata, angelica sinensis, radix paeoniae alba, medlar, ginseng, oyster, safflower, rose, jujube, rhizoma atractylodis macrocephalae fried with bran, fructus psoraleae and Chinese yam. The pharmaceutical composition for preventing and treating premature ovarian failure and improving osteoporosis has the effects of tonifying kidney, regulating menstruation and nourishing ovary, and can regulate all links of cerebral cortex, hypothalamus-pituitary gland-adrenal gland and ovarian axis.