A preparation method of a titanium nail capable of loading a drug, characterized in that, the titanium nail capable of loading a drug comprises a titanium nail body, and a microporous ceramic layer capable of loading a drug arranged on a surface of the titanium nail body; the preparation method of the titanium nail capable of loading a drug comprising: pretreating, treating the surface of the titanium nail body by a heated alkaline solution, then drying after repeated cleanings; preparing a hyaluronic acid-alginic acid microsphere: weighing equal amounts of sodium hyaluronate and sodium alginate and putting the sodium hyaluronate and sodium alginate into a high speed vacuum homogenizer, adding deionized water and a calcium chloride solution sequentially, vacuum homogenizing under a strong agitation, adding ethanol and continuing to agitate to generate a deposit of the hyaluronic acid-alginic acid microsphere, washing with anhydrous ethanol, vacuum freeze-drying, suspending in an anhydrous ethanol solution; preparing titanium sol solution: dissolving tetrabutyl titanate in the ethanol; adding a sodium alginate solution and acetylacetone sequentially when agitating; continuing to agitate to generate a stable and uniform titanium sol solution; and aging at a room temperature; coating and pore-forming: mixing an ethanol suspension of the hyaluronic acid-alginic acid microsphere obtained from step with the titanium sol solution obtained from step, coating on the surface of the titanium nail body with a mixed solution and drying to obtain a coated titanium nail, heat treating the coated titanium nail in hot water, with the hyaluronic acid and the alginic acid dissolving and stripping in the hot water, forming a microporous titanium dioxide film on a surface of the coated titanium nail; and roasting: roasting the titanium nail coated with the titanium dioxide film obtained from step in a roasting furnace to form the titanium nail having a microporous titanium dioxide ceramic layer, water washing and drying to obtain the titanium nail capable of loading a drug. pretreating, treating the surface of the titanium nail body by a heated alkaline solution, then drying after repeated cleanings; preparing a hyaluronic acid-alginic acid microsphere: weighing equal amounts of sodium hyaluronate and sodium alginate and putting the sodium hyaluronate and sodium alginate into a high speed vacuum homogenizer, adding deionized water and a calcium chloride solution sequentially, vacuum homogenizing under a strong agitation, adding ethanol and continuing to agitate to generate a deposit of the hyaluronic acid-alginic acid microsphere, washing with anhydrous ethanol, vacuum freeze-drying, suspending in an anhydrous ethanol solution; preparing titanium sol solution: dissolving tetrabutyl titanate in the ethanol; adding a sodium alginate solution and acetylacetone sequentially when agitating; continuing to agitate to generate a stable and uniform titanium sol solution; and aging at a room temperature; coating and pore-forming: mixing an ethanol suspension of the hyaluronic acid-alginic acid microsphere obtained from step with the titanium sol solution obtained from step, coating on the surface of the titanium nail body with a mixed solution and drying to obtain a coated titanium nail, heat treating the coated titanium nail in hot water, with the hyaluronic acid and the alginic acid dissolving and stripping in the hot water, forming a microporous titanium dioxide film on a surface of the coated titanium nail; and roasting: roasting the titanium nail coated with the titanium dioxide film obtained from step in a roasting furnace to form the titanium nail having a microporous titanium dioxide ceramic layer, water washing and drying to obtain the titanium nail capable of loading a drug.