The cascade of gastric cancer, a leading cause of cancer incidence and mortality, is multifactorial. Helicobacter pylori (HP) infection plays a major role in gastric cancer (GC), and there has been an accumulation of data regarding the chemopreventive effect of HP eradication. However, it remains unclear how HP infection causes GC and how HP eradication prevents GC. To clarify this issue, the following approaches were performed in this review article. First, how HP‐induced atrophic gastritis (AG) and intestinal metaplasia (IM) provoke the development of GC is shown, followed by how long HP eradication takes to induce a reversible change in AG and IM. Second, epigenetic studies of PTPN6, MOS, DCC, CRK, and VAV1 were performed in noncancerous gastric specimens in terms of HP status. Among these genes, MOS was found to be a possible surrogate marker for GC development. HP eradication decreased aberrant DNA methylation in a gene‐specific manner, and MOS played a role in metachronous gastric neoplasms. Third, transforming growth factor‐β1 (TGF‐β1) and TGF‐β1‐induced epithelial‐mesenchymal transition (EMT) markers were investigated in gastric mucosa. HP infection triggered the TGF‐β1‐induced EMT pathway and caused the emergence of GC stem cells, such as CD44v8‐10. When HP was eradicated, these two pathways were inhibited. Finally, a 2222 cohort study showed that HP eradication significantly decreased the risk of noncardiac GC. Taken together, HP eradication is effective as a primary GC prevention method, and its underlying mechanism includes reversibility of AG and IM, methylation, EMT, and stem cells.