Introduction: Helicobacter pylori is highly contagious and can be spread through hands, unclean food, unclean tableware and feces. Therefore, we should develop good hygiene habits in our daily diet to prevent infection. Patients with helicobacter pylori should pay attention to regular and quantitative diet, rich nutrition, soft and digestible food, a small amount of meals, chewing slowly; Avoid overeating, raw food, hot and sour food, fried and irritating food, smoked and pickled food. Pickled foods containing nitrosamines also have carcinogenic effects, and the positive effects of Helicobacter pylori will increase the risk of cancer.