Together, our data identified that TRIM31 negatively regulated the activation of NLRP3 inflammasome in Hp-associated gastritis by affecting ROS and autophagy of gastric epithelial cells. The gene discussed is HP; the disease is gastritis.