Chronic infection of the mucosal layer of the stomach with H. pylori is a major risk factor for stomach cancer. 
H. pylori infection in the wall of the stomach that does not get better is a big risk factor for stomach cancer. 