Background: Helicobacter pylori (H. pylori) -induced gastric inflammation in the gastric mucosa and significantly increases the risk of developing gastritis and peptic ulcer disease (PUD). The objective of this research is to determine the role of tumor necrosis factor-α (TNF-α) expression in the gastric mucosa of patients with H. pylori –associated gastritis and PUD compared to uninfected patients, and we determined the relation between TNF-α expression and Th1/Th17/Th22, and Treg cells.Methods: Fifty-five patients with H. pylori –associated gastritis, 47 patients with H. pylori –associated PUD, and 48 uninfected patients were in this research. Antrum biopsy was used to detect H. pylori, virulence factors and histopathological assessments.Results: Expression of TNF-α in the infected group was significantly higher than the uninfected group. Also, cagA/oipA-positive infected patients induce significantly more TNF-α expression than do cagA/oipA-negative infected patients. Expression of TNF-α was significantly increased in the PUD group than the gastritis group. Notably, TNF-α expression had a significant positive correlation with the frequency of Th1/Th17/Th22 lymphocytes in the PUD group.Conclusion: These findings indicate the importance of increasing TNF-α with Th1, Th17, Th22 responses increase as an important risk factor for PUD in context of H. pylori infection.