The pancreas is an important gland that has one function: to regulate blood sugar.