292 Background: Gastric cancer (GC) is a major global malignancy causing significant mortality. Most diagnoses occur at advanced stages. Current treatments involve surgery, chemotherapy, and targeted therapies. Targeted drugs face resistance and side effects. Curcumin, derived from Curcuma longa, shows promise against GC. Improved analogs addressing bioavailability have been developed. Some curcumin-based compounds with o-methoxy phenyl groups exhibit enhanced anticancer activity. We designed and synthesized (1E,4E,6E)-1,7-diphenyl hepta-1,4,6-trien-3-one analogs inspired by o-methoxy phenyl for anti-gastric cancer evaluation in vitro and in vivo. Methods: We designed and synthesized a series of analogs named (1E,4E,6E)-1,7-diphenyl hepta-1,4,6-trien-3-one analogues inspired by the o-methoxy phenyl group based on association theory. Anti-tumor activity was evaluated in vitro using gastric cancer cell lines BGC-823 and SGC-7901. Compound 2 was selected as a prime candidate based on its potency. Results: Compound 2 demonstrated potent anti-tumor effects in vitro by suppressing growth, migration, and invasion of SGC-7901 and BGC-823 cells. Impressively, it prompted cell cycle arrest at the G2/M phase and initiated apoptosis through Bax activation and caspase 3 inhibition. Moreover, in vivo trials on xenograft model nude mice validated the compound's substantial anti-gastric cancer potential while maintaining a favorable safety profile. Conclusions: A group of curcumin analogs exhibiting strong anti-gastric cancer activity was developed. The active compound 2 is capable of inhibiting the growth, colony formation, migration, and invasion of gastric cancer cells. It also arrests the cell cycle at the G2/M phase and stimulates the expression of apoptosis-related proteins, showcasing a powerful anti-gastric cancer effect in vitro. Furthermore, it demonstrates significant anti-gastric cancer activity in vivo while maintaining a favorable safety profile. Our research underscores the potential of (1E, 4E, 6E)-1,7-diphenylheptyl-1,4,6-trien-3-one analogs with o-methoxyphenyl in combatting tumors and highlights their promise as a secure anti-tumor candidate drug.