The purpose of this study was to identify the applicability, main compounds, and target genes of Cnidii Fructus (CF) in the treatment of gastritis using network pharmacology. The compounds in CF were searched in Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform (TCMSP) and a database of medicinal materials and chemical compounds in Northeast Asian traditional medicine (TM-MC). The target gene information of the compounds was collected from pubchem and cross-compared with the gastritis-related target gene information collected from Genecard to derive the target genes. Gene ontology (GO) analysis and Kyoto Encyclopedia of Genes and Genomes (KEGG) analysis were performed on the derived target genes. Afterwards, network analysis between compounds and disease target genes was performed using cytoscape. We identified 121 active compounds and 139 target genes associated with gastritis. Pathways derived from the GO biological process and KEGG pathway DB primarily focus on target genes related to inflammation (IL-6, IL-8, TNF production, NF-κB transcription factor activity, and NF-κB signaling pathway) and cell death (PI3K-Akt, FoxO). Major targets for CF treatment of gastritis include TP53, TNF, BCL2, EGFR, NFKB1, ABCB1, PPARG, PTGS2, IL6, IL1B, and SOD1, along with major compounds such as coumarin, osthol, hexadecanoic acid, oleic acid, linoleic acid, and stigmasterol. This study provided CF's applicability for gastritis, related compounds, and target information. Evaluating CF's effectiveness in a preclinical gastritis model suggests its potential use in clinical practice for digestive system diseases.