Pancreatitis is pathologic swelling and inflammation of the pancreas. Your pancreas resides behind your stomach. It secretes enzymes that help you digest food and regulates how your body breaks down sugars. Pancreatitis can come and go quickly, or it can be a chronic problem.