Rosmarinic acid (RosA) is a natural phenolic acid compound, which is mainly extracted from Labiatae and Arnebia. At present, there is no systematic analysis of its mechanism. Therefore, we used the method of network pharmacology to analyze the mechanism of RosA. In our study, PubChem database was used to search for the chemical formula and the Chemical s Service (CAS) number of RosA. Then, the Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform (TCMSP) was used to evaluate the pharmacodynamics of RosA, and the Comparative Toxicogenomics Database (CTD) was used to identify the potential target genes of RosA. In addition, the Gene Ontology (GO) enrichment analysis and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analysis of target genes were carried out by using the web-based gene set analysis toolkit (WebGestalt). At the same time, we uploaded the targets to the STRING database to obtain the protein interaction network. Then, we carried out a molecular docking about targets and RosA. Finally, we used Cytoscape to establish a visual protein-protein interaction network and drug-target-pathway network and analyze these networks. Our data showed that RosA has good biological activity and drug utilization. There are 55 target genes that have been identified. Then, the bioinformatics analysis and network analysis found that these target genes are closely related to inflammatory response, tumor occurrence and development, and other biological processes. These results demonstrated that RosA can act on a variety of proteins and pathways to form a systematic pharmacological network, which has good value in drug development and utilization.