Drug-induced pancreatitis is an adverse reaction of the pancreas to certain medications. The condition arises when drugs or their metabolites cause direct toxic effects on pancreatic cells or trigger immune-mediated responses leading to inflammation of the pancreas.