The pancreas is a long, narrow gland located behind the stomach.
It functions as both an endocrine gland (producing hormones) and an exocrine gland (producing digestive enzymes).
As an exocrine gland, the pancreas releases digestive enzymes, such as lipase (for fat digestion), amylase (for carbohydrate digestion), and protease (for protein digestion), into the small intestine to aid in chemical digestion.
The pancreas also produces bicarbonate, which neutralises the acidic chyme from the stomach, creating a more suitable environment for the pancreatic enzymes to work.