We present the results of electron microscopic, microbiological, immunohistochemical, and molecular genetic studies of gastric biopsy specimens taken for diagnostic purposes according by clinical indications during examination of patients with gastrointestinal pathology. Immune homeostasis of the gastric mucosa against the background of infection with various pathogen strains of Helicobacter pylori was studied in patients of different age groups with peptic ulcer, gastritis, metaplasia, and cancer. Some peculiarities of Helicobacter pylori contamination in the gastric mucosa were demonstrated. Immune homeostasis of the gastric mucosa in different pathologies was analyzed depending on the Helicobacter pylori genotype.