Disclosed is the use of an INGAP-PP peptide, an HIP peptide or an analogue thereof in the preparation of a drug for treating acute pancreatitis. The polypeptide compound can significantly reduce the increase in the levels of amylase and lipase in the blood caused by acute pancreatitis, reduce the degree of pancreatic pathological damage caused by pancreatitis, and significantly decrease death caused by acute pancreatitis.