The pancreas is an abdominal organ located behind the stomach that secretes digestive enzymes and hormones. It has both exocrine functions that help break down food and endocrine functions of regulating blood sugar. The pancreas develops from endoderm in the duodenum that forms dorsal and ventral buds. These buds rotate and fuse to form the mature pancreas, with the dorsal duct opening at the minor papilla and ventral duct joining the common bile duct to open at the major papilla. The pancreas contains islands of endocrine cells that secrete hormones like insulin and glucagon to regulate blood sugar, as well as exocrine cells that secrete digestive enzymes into the small intestine.