The pancreas is a mixed gland, having both an endocrine and an exocrine function. As an endocrine gland, it secretes into the blood several important hormones, including insulin, glucagon, somatostatin, and pancreatic polypeptide. The endocrine portion of the pancreas takes the form of many small clusters of cells called islets of Langerhans.