Diabetes mellitus is a chronic disease that affects how your body manages glucose. It occurs when the pancreas either doesn't create enough insulin, or your body can't effectively use the insulin it generates. Insulin is a chemical that regulates blood sugar levels. Without enough functioning insulin, excess glucose builds up in your bloodstream, l