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 NLRP3; the disease is gastritis.