Our results show that ciclopirox olamine (CPX) is able to reprogram gastric cancer cells to a stem-like phenotype via SOX2 expression, reprogram cell metabolism, and induce senescence. Here, SOX2 is linked to gastric cancer.