The invention discloses a drug for treating and preventing fracture, which is prepared by the ingredients of kelp, marine alga plant rich in algin and acetic acid or acetic anhydride. The preparation method of the drug is as follows: a, getting kelp and marine alga plant rich in algin, drying and grinding to powder, soaking the powder in acetic acid, wherein, the amount of the acetic acid added is in a standard that the acetic acid immerses the marine alga powder to carry out reaction for 2-3 weeks at normal temperature, pouring out the acetic acid liquid after the reaction is finished, drying under normal temperature, after drying, neutralizing through sodium hydroxide or other alkaline substance, after neutralizing, drying under normal temperature, and getting the substance used for preparing the drug for promoting fracture healing; and b, getting the kelp and the marine alga plant rich in the algin, drying and grinding to powder, soaking the powder in the acetic anhydride, the amount of the acetic anhydride added is in a standard that the acetic anhydride immerses the marine alga powder, then adding sulfuric acid for catalytic reaction, wherein the amount of the sulfuric acid added is 0.3% of the amount of the acetic anhydride, pouring out the acetic acid liquid after the reaction is over, drying under normal temperature, after drying, neutralizing through sodium hydroxide or other alkaline substance, after neutralizing, drying under normal temperature, and finally getting the substance used for preparing the drug for promoting fracture healing.