Garlic has the effect of killing H. pylori, but the effect is not exact. H. pylori infection is a common cause of stomach disorders and should be treated promptly for people with H. pylori infection in the stomach. Many people often eat garlic when they have H. pylori infection, trying to kill H. pylori by eating garlic, but eating garlic alone cannot kill H. pylori. The main reason why garlic can kill H. pylori is that it contains flavonols and organosulfur compounds that can inhibit H. pylori infection. However, the substance content in garlic is limited and cannot completely kill H. pylori completely, so for people who have H. pylori infection, it is best to treat them by oral antibiotics, proton pump inhibitors, and bismuth, and the treatment is the only way to cure H. pylori infection.