The Chinese herbal medicine Rosa roxburghii Tratt (RRT) is widely used in the treatment of malignant tumors, including gastric cancer (GC), but its pharmacological mechanism remains unclear. The purpose of this research was to identify the mechanisms of RRT on treating GC by using network pharmacology and molecular docking, combined with the analysis of differential expressed genes in GEO gene chips and TCGA database. We first defined the effective components of RRT and their potential targets for the treatment of GC, and identified core targets according to the topology analysis by constructing a protein-protein interaction network. Furthermore, molecular docking was used to verify the docking between the core active ingredients and the key targets. The results showed that the effect of RRT may be closely associated with multiple signal pathways, including pathways in cancer, phosphatidylinositol 3-kinase-AKT serine/threonine kinase (PI3K-Akt), tumor necrosis factor (TNF), hypoxia-inducible factor 1 (HIF-1), and mitogen-activated protein kinase (MAPK). It is suggested that RRT may play an effect by regulating hypoxia, improving the tumor microenvironment, inhibiting inflammatory reactions and promoting apoptosis. The mechanism of RRT in the treatment of GC is revealed here for the first time based on network pharmacology analysis, which may provide a new direction for further exploration of the mechanisms of RRT in the treatment of GC and a new perspective for research on anti-tumor drugs.