The invention discloses a medicine capable of treating tuberculosis and osteomyelitis. A preparation method of the medicine comprises the steps of grinding baked dinodon rufozonatum, baked centipede, astragalus membranaceus, angelica sinensis, scutellaria baicalensis, dangshen, bighead atractylodes rhizome, angelica dahurica, radix stemonae, honeysuckle, radix rehmanniae, liquorice, radix cyathulae and poria cocos into fine powder, mixing, and refining into pills by using honey. The medicine has an obvious treatment effect on pulmonary tuberculosis, pleurisy, osteoarticular tuberculosis, tuberculosis of cervical lymph nodes, osteomyelitis and the like. After the tuberculosis of cervical lymph nodes ruptures, a thread covered with dinodon rufozonatum powder is inserted into the tuberculosis of cervical lymph nodes, and the medicine has internal and external treatment effects; after sinus tracts form in an osteomyelitis patient, the thread covered with the dinodon rufozonatum powder is inserted into the tracts, fester can be quickly discharged, sequestrum automatically comes off, and osteotrauma automatically repairs to recovery. The medicine does not increase the surgery pain of patients, has no side effects and does not cause serious allergy or damage internal organs after long-term taking; the medicine only needs to be taken at home, and holed cauterized needling can be applied in small clinics, so that the medicine expenses are small. The curative ratio of the tuberculosis diseases is above 99%, and the curative ratio of the osteomyelitis is above 90%.