Pancreas, as an endocrine gland, secretes the hormones insulin and glucagon to control blood sugar levels throughout the day. Both of these diverse functions are vital to the body’s survival. It regulates the amount of sugar in the blood. Diabetes is caused due to the deficiency of this hormone in the body for which the blood sugar level rises.