Gallstones are a common cause of pancreatitis. Gallstones, produced in the gallbladder, can slip out of the gallbladder and block the bile duct, stopping pancreatic enzymes from traveling to the small intestine and forcing them back into the pancreas. The enzymes then begin to irritate the cells of the pancreas, causing the inflammation associated with pancreatitis.