In this large nationwide retrospective cohort study, we analyzed the risks of hospitalization for acute pancreatitis associated with DPP-4 inhibitors compared with non-DPP-4 inhibitors in patients with T2D with a prior history of acute pancreatitis. Here, DPP4 is linked to type 2 diabetes mellitus.