Aquaporin 5 (AQP-5) is a water channel protein that is closely associated with non-small cell lung cancer tissues. The present study aimed to investigate the mechanism of tanshinol treatment on AQP-5 in the lung tissue of rats with sepsis. Animals in a rat sepsis model were randomly divided into six groups including blank control (ctrl), sham operation (SO), model (sepsis), low dose tanshinol (5 mg/kg/day; Tan-L), moderate dose tanshinol (10 mg/kg/day; Tan-M) and high dose tanshinol (20 mg/kg/day; Tan-H) groups. After 7 days of administration, the expression level of AQP-5 mRNA was detected by reverse transcription-quantitative polymerase chain reaction. The levels of interleukin-6 (IL-6) and tumor necrosis factor α (TNF-α) were measured by ELISA. Hematoxylin and eosin staining was used for histopathological observation. The expression levels of AQP-5, P38 and phosphorylated (P)-P38 protein in lung tissues were detected by western blot analysis. The expression levels of AQP-5 in the sepsis group were significantly decreased compared with those in ctrl and SO groups (P<0.01), while the levels of TNF-α, IL-6 and p-P38 were significantly increased in sepsis group compared with those in ctrl and SO groups (P<0.01). Following tanshinol intervention, the expression levels of AQP-5 were significantly increased, while the levels of TNF-α, IL-6 and p-P38 were decreased compared with those in sepsis group. Tanshinol may upregulate the expression of AQP-5 by inhibiting the inflammatory cytokines and phosphorylation of P38, therefore protecting the lung tissue of rats with sepsis.