Helicobacter pylori (H. pylori) is a causative agent for peptic ulcers as well as some types of gastric lymphoma; however, the relationship between a peptic ulcer history in combination with H. pylori infection and the risk of gastric lymphoma has not been fully evaluated. To examine this point, we conducted a case-control study with 645 patients histologically diagnosed as having malignant lymphomas and 3225 non-cancer controls. Plasma H. pylori IgG status was assessed for subgroups for which blood samples were available (116 cases and 114 controls). An association with a history of gastric, but not duodenal ulcers was found for gastric lymphoma [odds ratio (OR) = 5.41, 95% confidence interval (CI): 3.12-9.39]. In the examination according to histological subtype, the OR was high for both gastric mucous-associated lymphoid tissue (MALT) lymphoma (OR = 5.54, 95% CI: 2.56-12.01) and diffuse large B-cell lymphoma (DLBCL) (OR = 7.23, 95% CI: 2.62-19.90). In the analysis of H. pylori antibody, the risk of total gastric lymphoma was associated with H. pylori infection (OR = 5.34, 95% CI: 1.42-20.05). A high prevalence of H. pylori infection was also found for both gastric MALT lymphoma (8 out of 10: 80.0%) and DLBCL (8 out of 9: 88.9%). Further, in subgroup analysis of subjects with H. pylori infection, gastric ulcer history, but not duodenal ulcer history was associated with the risk of gastric lymphoma (OR = 4.15, 95% CI: 1.02-16.89). In conclusion, we found a positive association with a past history of gastric ulcer and H. pylori infection for gastric lymphoma, while duodenal ulcer history was no association. These results suggested the risk of gastric lymphoma increased by interaction between H. pylori infection and gastric ulcer history. Further studies are warranted.