These findings indicate that JMJD2B activation and COX-2 upregulation contribute to gastric inflammation and carcinogenesis. Here, KDM4B is linked to inflammation.