The main function of the pancreas is to maintain healthy blood sugar levels. It is a large gland located behind the stomach. It produces insulin, glucagon, and other hormones.

Diabetes occurs when the pancreas does not produce enough insulin or when the body doesn’t use insulin properly (called insulin resistance).