The pancreas is a J-shaped gland located behind the stomach that contains both exocrine and endocrine tissues. The exocrine tissues secrete digestive enzymes, while the endocrine tissues contain clusters of cells called islets of Langerhans. The main islet cell types are alpha cells which secrete glucagon, and beta cells which secrete insulin, which regulates blood glucose levels by facilitating glucose uptake into cells and inhibiting glucose production. Diabetes mellitus occurs when insulin production or function is inadequate, leading to high blood glucose levels. The two main types are type 1 caused by beta cell deficiency, and type 2 caused by insulin resistance.