Acute pancreatitis (AP) is hypothesized to be related to the activation of an inflammatory response induced by pyroptosis. The aim of the present study was to investigate the potential role of tumor necrosis factor receptor-associated factor 6 (TRAF6) in pyroptosis in an AP rat model and the human pancreatic ductal epithelial HPDE6C7 cell line. In vivo, AP was induced by intraperitoneal injection of caerulein (CAE) in rats. The rats were sacrificed at 24 or 48 h after the final CAE injection. In vitro, HPDE6C7 cells were treated with CAE for 12, 24 and 48 h. Moreover, TRAF6 was overexpressed and treated with CAE for 48 h. Histopathological changes of pancreatic, serum and supernatant inflammatory cytokines and pyroptosis-related mRNA and protein expression levels were determined by histopathological scores, ELISA, reverse transcription-quantitative PCR and western blotting. In addition, pyroptosis morphological changes were also determined by Hoechst/PI staining in HPDE6C7 cells. Results showed that AP was observed in the CAE-induced rat model, and that serum IL-1β and IL-18 levels, and TRAF6, NLR pyrin domain containing 3 (NLRP3), caspase-1 and caspase-3 mRNA and protein expression levels were increased. Similar in HPDE6C7 cells, CAE treatment caused supernatant IL-1β level, NLRP3 and caspase-1 mRNA expression levels to significantly increase. After TRAF6 overexpression and CAE treatment, supernatant IL-1β level, caspase-1 protein expression level, and NLRP3 and caspase-3 mRNA and protein expression levels were also significantly increased. Furthermore, cells exhibited red fluorescence in Hoechst/PI staining, which can be used as a method of detecting pyroptosis activation. The results also showed that the red fluorescence was stronger after CAE treatment or TRAF6 overexpression plus CAE treatment. In conclusion, TRAF6 and caspase-1/3 signaling pathways were involved in the pathogenesis of CAE-induced AP in rats. Pyroptosis was activated by CAE and TRAF6 overexpression via the caspase-1/3 signaling pathways in HPDE6C7 cells.