The pancreas belongs mainly to the digestive system. It makes digestive juices containing enzymes that help break down food in the small intestine.
It also has an important role in the endocrine system: it releases hormones, including insulin, into the bloodstream to help regulate blood sugar. So, the pancreas serves both systems.