Diabetes occurs when your body is unable to effectively regulate blood sugar levels. This can result from your pancreas not producing enough insulin, your cells becoming resistant to insulin, or a combination of both factors.