Type 2 diabetes is a medical condition that happens when your blood sugar is either too high or too low.