Taken together, our results indicated that terphenyllin exerts its anticancer activity by inhibiting the STAT3 signaling pathway and may serve as a potent STAT3 inhibitor for gastric cancer treatment. Here, STAT3 is linked to gastric cancer.