Helicobacter pylori (H. pylori) infection plays a critical role in gastric diseases, impacting the microbiota structure in gastric and duodenal ulcers. In their study, Jin et al utilized metagenomic sequencing to analyze mucosal samples from patients with ulcers and healthy controls, revealing significant changes in microbial diversity and composition. This article reviews their findings, emphasizing H. pylori's role in gastric ulcers and the need for further research on its impact on duodenal ulcers. We evaluate the study's strengths and limitations, suggesting future research directions to enhance our understanding of H. pylori's contribution to ulcerative diseases.