These compounds showed anti-gastric cancer activity against the HGC-27 cell line by acting on TNF and T-cell receptor signaling pathways to diminish inflammatory factor production and promote apoptosis of gastric cancer cells. Here, TNF is linked to gastric cancer.