The invention discloses antibacterial paste for killing or inhibiting helicobacter pylori in the oral cavity and a preparation method thereof. The antibacterial paste comprises the following raw materials in parts by mass: 1 to 1.5 parts of lysozyme, 0.5 to 2.5 parts of lactoferrin, 0.5 to 2 parts of frankincense extract, 0.5 to 2 parts of herba ecliptae extract, 0.5 to 2 parts of minor radix buplenri extract, 0.5 to 2 parts of radix sophorae flavescentis extract, 0.5 to 2 parts of radix isatidis extract, 0.5 to 2 parts of fructus forsythiae extract, 0.5 to 2 parts of radix glycyrrhizae extract, 0.5 to 2 parts of radix stemonae extract, 0.5 to 2 parts of herba hedyotis extract, 0.5 to 2 parts of aloe extract, 0.5 to 2 parts of flos chrysanthemi extract, 0.5 to 2 parts of stevia rebaudianaextract, 0.5 to 2 parts of bletilla striata extract, 0.772.30 parts of aminocaproic acid and the balance of a toothpaste matrix. According to the antibacterial paste capable of killing or inhibiting the helicobacter pylori in the oral cavity provided by the invention, the oral antibacterial paste has the strong-effect lysozyme and frankincense oil, and plays a role in strongly killing the helicobacter pylori for dissolving and degrading helicobacter pylori cell membranes and reducing the adhesiveness of the helicobacter pylori cell membranes and oral mucosa.