Diabetes is a chronic condition that affects the body's ability to regulate blood sugar levels. It occurs when the pancreas does not produce enough insulin or when the body cannot effectively use the insulin it produces. This leads to high levels of glucose in the blood, which can have serious health consequences if left untreated.