Gastric cancer-positive patients in the H. pylori-infected smoking and H. pylori-infected obese groups had lower frequencies of IL-10+ B cells. Here, IL10 is linked to gastric cancer.