Titanium (Ti) and its alloys are widely used in medical treatment, engineering, and other fields because of their excellent properties including biological activity, an elastic modulus similar to that of human bones, and corrosion resistance. However, there are still many defects in the surface properties of Ti in practical applications. For example, the biocompatibility of Ti with bone tissue can be greatly reduced in implants due to a lack of osseointegration as well as antibacterial properties, which may lead to osseointegration failure. To address these problems and to take advantage of the amphoteric polyelectrolyte properties of gelatin, a thin layer of gelatin was prepared by electrostatic self-assembly technology. Diepoxide quaternary ammonium salt (DEQAS) and maleopimaric acid quaternary ammonium salt (MPA−N+) were then synthesized and grafted onto the thin layer. The cell adhesion and migration experiments demonstrated that the coating has excellent biocompatibility, and those grafted with MPA−N+promoted cell migration. The bacteriostatic experiment showed that the mixed grafting with two ammonium salts had excellent bacteriostatic performance againstEscherichia coliandStaphylococcus aureus, with bacteriostasis rates of 98.1 ± 1.0% and 99.2 ± 0.5%, respectively.