The invention discloses a medicine for treating osteoporosis and a preparation method of the medicine, and belongs to the field of traditional Chinese medicines. The effective components of the medicine disclosed by the invention are prepared from the following raw materials: psychotria serpens, quail, membranaceous beautyleaf root, ventilago leiocarpa benth, thesium chinensis, mussel, sambucus adnata, philippine flemingia root, lichen of parmelia saxitilis, hoya lancilimba, angelica sinensis, false nettleleaf pepper herb, cabbage, cinnamomum burmanni peel, liquorice and herba pyrolae. The medicine is appropriate of compatibility, has the efficacies of building bodies, invigorating bones, invigorating the spleen, replenishing qi, relaxing spasm, relieving pain, tonifying kidneys and deficiency, eliminating dampness, dredging channels, coordinating the drug actions of a prescription by combination of a plurality of medicinal materials, has the advantages of being fast in acting, high in recovery rate, free of toxic or side effect, safe and convenient on the treatment of osteoporosis, and has relatively significant effects of lubricating joints, and strengthening tendons and bones; meanwhile, the immunity of a human body is obviously improved; and the medicine can be widely applied to clinical treatment of the osteoporosis.