BackgroundZuojinwan (ZJW), a classic herbal formula, has been extensively used to treat gastric symptoms in clinical practice in China for centuries. However, the pharmacological mechanisms of ZJW still remain vague to date.MethodsIn the present work, a network pharmacology-based strategy was proposed to elucidate its underlying multi-component, multi-target, and multi-pathway mode of action against gastritis. First we collected putative targets of ZJW based on TCMSP and STITCH databases, and a network containing the interactions between the putative targets of ZJW and known therapeutic targets of gastritis was built. Then four topological parameters, “degree”, “betweenness”, “closeness”, and “coreness” were calculated to identify the major targets in the network. Furthermore, the major hubs were imported to the Metacore database to perform a pathway enrichment analysis.ResultsA total of 118 nodes including 59 putative targets of ZJW were picked out as major hubs in terms of their topological importance. The results of pathway enrichment analysis indicated that putative targets of ZJW mostly participated in various pathways associated with anti-inflammation response, growth and development promotion and G-protein-coupled receptor signaling. More importantly, five putative targets of ZJW (EGFR, IL-6, IL-1β, TNF-α and MCP-1) and two known therapeutic targets of gastritis (CCKBR and IL-12β) and a link target NF-κB were recognized as active factors involved in the main biological functions of treatment, implying the underlying mechanisms of ZJW acting on gastritis.ConclusionZJW could alleviate gastritis through the molecular mechanisms predicted by network pharmacology, and this research demonstrates that the network pharmacology approach can be an effective tool to reveal the mechanisms of traditional Chinese medicine (TCM) from a holistic perspective.Electronic supplementary materialThe online version of this article (10.1186/s12906-018-2356-9) contains supplementary material, which is available to authorized users.