H. pylori is a bacterium that lives in the stomach. Garlic can inhibit some of the growth of H. pylori, but whether it can completely kill H. pylori is still controversial and needs further research. At present, the eradication of H. pylori still depends mainly on the quadruple bactericidal regimen, which can guarantee a definite eradication rate. Garlic contains organosulfur compounds and flavonols, which are responsible for the odor of garlic, and can inhibit part of the growth of H. pylori, while these two components can also effectively degrade carcinogens, so garlic can have some control and inhibit the occurrence of gastric cancer. However, the use of garlic to completely kill H. pylori is still limited, and it is still recommended that patients can go to the hospital for systematic eradication of H. pylori treatment.