The most common cause of acute pancreatitis is having gallstones. Gallstones cause inflammation of your pancreas as stones pass through and get stuck in a bile or pancreatic duct. This condition is called gallstone pancreatitis