The pyrazole derivatives are promising candidates for targeting KDM5B inhibition and as a new therapeutic strategy for gastric cancer treatment. Here, KDM5B is linked to gastric cancer.