This study aimed to explore the mechanism of Fuzi Lizhong Tang (FZLZT) in treating gastric cancer using network pharmacology and molecular docking, and to validate the results through in vitro experiments. Active ingredients and target genes of FZLZT were obtained from the Traditional Chinese Medicine Systems Pharmacology (TCMSP) database, while disease targets of gastric cancer were collected from GeneCards, OMIM, and DrugBank databases. The "herb-active ingredient-target gene" network was constructed using Cytoscape software, and core active ingredients were obtained through topological analysis. Protein-protein interaction analysis was performed using the STRING database, and core targets were obtained through topological analysis. Gene Ontology (GO) function and Kyoto Encyclopedia of Genes and Genomes (KEGG) signaling pathway enrichment analysis were performed using the DAVID database. Molecular docking was conducted using AutoDock Vina software to verify the interaction between core ingredients and core targets. Cholecystokinin octapeptide (CCK-8) assay was used to determine the proliferation inhibition effect of FZLZT on AGS, BGC823, HGC-27, MGC-803, and SGC-7901 gastric cancer cell lines, and ANNEXIN V-FITC/PI double staining combined with flow cytometry was used to measure the cell apoptosis rate. Network pharmacology analysis revealed 117 active ingredients and 261 target genes of FZLZT, and 211 overlapping targets with gastric cancer. Ten core active ingredients were identified through topological analysis, including quercetin, 7-methoxy-2-methyl isoflavone, kaempferol, luteolin, naringenin, isorhamnetin, quercetagetin, glycyrrhizic acid A, β-sitosterol, and medioresinol. GO and KEGG enrichment analysis showed that the mechanism of FZLZT in treating gastric cancer mainly involves cancer, inflammation, metabolism, and blood rheology-related pathways, and may act through 7 core targets (CDKN1A, MYC, MAPK1, MAPK14, RB1, RELA, and STAT3). Molecular docking results further confirmed the prediction of network pharmacology. In vitro experiments showed that FZLZT inhibited the proliferation of all five gastric cancer cell lines, with the strongest effect on SGC-7901 cells, and induced apoptosis in SGC-7901 cells. FZLZT has a multi-component, multi-target, and multi-pathway characteristic in treating gastric cancer. Its active ingredients may regulate the expression of proteins such as CDKN1A, MYC, MAPK1, MAPK14, RB1, RELA, and STAT3 to activate cancer-related signaling pathways to achieve its therapeutic effect.