Anti-Helicobacter pylori therapy may lead to the growth of pathogenic or antibiotic-resistant bacteria in the gut. The study aimed to investigate the short-term and long-term impacts of H.pylori eradication with reverse hybrid therapy on the components and macrolide resistance of the gut microbiota. Helicobacter pylori-related gastritis patients were administered a 14-day reverse hybrid therapy. Fecal samples were collected before treatment and at the end of week 2, week 8, and week 48. The V3-V4 region of the bacterial 16S rRNA gene in fecal specimens was amplified by polymerase chain reaction and sequenced on Illumina MiSeq platform. Additionally, amplification of erm(B) gene (encoding erythromycin resistance methylase) was performed. Reverse hybrid therapy resulted in decreased relative abundances of Firmicutes (from 62.0% to 30.7%; P<0.001) and Actinobacteria (from 3.4% to 0.6%; 0.032) at the end of therapy. In contrast, the relative abundance of Proteobacteria increased from 10.2% to 49.1% (0.002). These microbiota alterations did not persist but returned to the initial levels at week 8 and week 48. The amount of erm(B) gene in fecal specimens was comparable with the pretreatment level at week 2 but increased at week 8 (0.025) and then returned to the pretreatment level by week 48. Helicobacter pylori eradication with reverse hybrid therapy can lead to short-term gut dysbiosis. The amount of erm(B) gene in the stool increased transiently after treatment and returned to the pretreatment level at 1-year post-treatment.