In summary, the current study points out that TRIM31 attenuates NLRP3 inflammasome activation in Hp-associated gastritis by affecting ROS and autophagy. The gene discussed is TRIM31; the disease is gastritis.