Produces enzymes that are released into the small intestine via the duodenum, including amylase (breaks down carbohydrates), trypsin (breaks down proteins), and lipase (breaks down lipids). Also secretes hormones insulin and glucagon which regulate blood sugar level, and releases alkaline compounds to neutralise stomach acids.