The pancreas is an endocrine and exocrine gland located in the abdominal cavity. It has three regions - the head, body, and tail. The pancreas contains exocrine cells that secrete digestive enzymes into the small intestine to break down carbohydrates, lipids, and proteins. It also contains clusters of endocrine cells called islets of Langerhans that secrete hormones like insulin and glucagon to regulate blood sugar levels. Insulin is released from beta cells when blood sugar rises and promotes the uptake of glucose from the bloodstream into cells.