The aim of the present study was to investigate the role of the angiotensin-converting enzyme (ACE)2-angiotensin‑(Ang)-(1-7)-Mas axis in the pathogenesis of pancreatitis and the association between this axis and the p38 mitogen-activated protein kinase (p38 MAPK)/nuclear factor (NF-κB) signaling pathway in pancreatic acinar cells. Mouse pancreatic acinar cancer (MPC-83) cells were stimulated with 10 nM caerulein (CAE) to create an in vitro model of acute pancreatitis, and collected for analysis at 2, 6, 12, 24 and 48 h post stimulation. In addition, cells were pretreated with different concentrations of Ang‑(1‑7), Ang‑(1‑7) antagonist A779, p38 MAPK inhibitor SB203580 or ACE2 inhibitor DX600 for 30 min, and then stimulated with CAE for 24 h. The ACE2, Mas receptor, p38 MAPK, phosphorylated (p)-p38 MAPK and NF-κB expression levels were evaluated using western blotting and immunofluorescence. p38 MAPK, NF-κB, tumor necrosis factor-α (TNF-α), interleukin-6 (IL-6), IL-8 and IL-10 mRNA expression levels were assessed using reverse transcription-quantitative polymerase chain reaction. The results of the immunofluorescence assay demonstrated that ACE2 and p38 MAPK were present mainly in the cytoplasm, while the Mas receptor was located mainly in the cell membrane. ACE2, p38 MAPK and p-p38 MAPK protein levels were significantly increased (P<0.05) following stimulation with CAE compared with those in the control group and peaked at 24 h. Mas receptor protein levels were significantly upregulated (P<0.05) between 6 and 24 h, peaking at 12 h. Ang‑(1‑7) and SB203580 downregulated p-p38 MAPK and NF-κB expression and the mRNA levels of inflammatory factors IL-6, TNF-α and IL-8, but upregulated the mRNA level of inflammatory factor IL-10 compared with those treated with CAE alone. These results were supported by the opposite outcomes observed for cells treated with A779 or DX600. Therefore, it was concluded that the ACE2-Ang‑(1‑7)-Mas axis significantly inhibits pancreatitis by inhibition of the p38 MAPK/NF-κB signaling pathway.