The invention provides a medicine for treating primary osteoporosis through a kidney-tonifying, spleen-strengthening and blood-stasis-removing method. The medicine is prepared from epimedium, antler gum, tortoise-plastron glue, semen cuscutae, cinnamon, rhizoma cibotii, achyranthes roots, eucommia bark, turtle shells, drynaria rhizome, astragalus, teasel roots, dried rehmannia roots, cornus officinalis, Chinese yam, poria cocos, moutan bark, rhizoma alismatis, radix angelica sinensis, white peony roots, radix salvia, leeches, dicranopteris linearis, aster striatus, orixa japonica and raw licorice roots. The medicine can improve the shape of bone trabecula by inhibiting bone loss caused by osteoclast, effectively improves ultrastructures of osteoporotic cancellous bones, increases bone mass, prevents and repairs microscopic fracture, and achieves the curative effect of preventing osteoporosis.