The pancreas is a vital organ located behind the stomach that serves both endocrine and exocrine functions. As part of the digestive system, it produces digestive enzymes that help break down carbohydrates, proteins, and fats in the small intestine, while also secreting hormones like insulin and glucagon to regulate blood sugar levels.