The invention discloses a titanium alloy implant with effects of resisting infection and promoting bone formation and a preparation method thereof. The preparation method comprises the following stepsof S1, preparing a titanium alloy implant body; S2, performing alkaline heat treatment on the surface of the titanium alloy implant body, and activating dopamine; S3, performing HA (hydroxyapatite) grafting, and activating the dopamine again; S4, under the room temperature environment, soaking the titanium alloy implant body treated in step 3 into 1 to 4 mM of silver nitrate solution for 0.5 to 8h, fetching out, airing, radiating by ultraviolet light for 0.5 to 2 h, and reducing, so as to obtain a nanometer Ag (silver) particle layer; S5, soaking the titanium alloy implant body treated in step 4 into 1 to 4 mg/ml of chitosan for 30 s to 5 min, and drying, so as to complete the preparation of the HA/Ag/Cs-loaded coating titanium alloy implant. Compared with the titanium alloy implant, theprepared HA/Ag/Cs-loaded coating titanium alloy implant has excellent antibacterial property, and can promote the bone formation and the integration of bone-prosthesis interface.