The invention relates to Zuojin helicobacter-pylori-resistant floating tablets and a preparation method thereof. The floating tablets are characterized by comprising 0.2 to 0.75 part of Zuojin alkaloid extract, 0.1 to 0.4 part of hydrophilic macromolecular material, 0.1 to 0.4 part of floating auxiliary agent, 0.01 to 0.1 part of foaming agent, 0.04 to 0.1 part of release regulator and a proper amount of starch, wherein the final total amount is 1 part. The preparation method comprises the following steps of: mixing the Zuojin alkaloid extract, 70 to 90 percent of the hydrophilic macromolecular material, the floating auxiliary agent, the foaming agent, the release regulator and the proper amount of starch in part uniformly, sieving the mixture with a sieve of 60 to 100 meshes, preparing a soft material by using water or 2 to 10 percent polyvinyl pyrrolidone ethanol solution or ethanol solution as an adhesive, sieving with a sieve of 10 to 24 meshes to prepare granules, drying the granules in the air at the temperature of 30 to70 DEG C, and mixing the rest hydrophilic macromolecular material, magnesium stearate in an amount accounting for 1 percent of the total amount and the granules, wherein the total amount is 1 part; and tableting the mixture by using a single-punch tablet press, wherein the weight of each tablet is 500mg, and the hardness is controlled between 30N and 60N. The tablets have the characteristics of constant and complete medicament release, reduced administration amount and administration times, and enhanced treatment effect; and the Zuojin helicobacter-pylori-resistant floating tablets for treating Hp infected stomach diseases are prepared with excellent prescription, compact pharmacological basis, reasonable processes and novel formulation, and are favorable for overcoming the defects of western medicaments, digging the treasure of the traditional Chinese medicine and exerting the treatment advantages of the traditional Chinese medicine.