Our results showed that M.hy activated the NLRP3 inflammasome in vitro and in vivo, and the promotion of gastric cancer cell migration and invasion by M.hy was dependent on NLRP3 inflammasome activation. Here, NLRP3 is linked to gastric cancer.