There are three types of diabetes: type 1, type 2, and gestational diabetes. Type 1 diabetes is an autoimmune disease in which the body attacks its own cells in the pancreas, leading to insulin deficiency and diabetes. Type 2 diabetes is a chronic metabolic disease that occurs when the body can't produce enough insulin or can't use insulin properly. Gestational diabetes is a form of diabetes that occurs during pregnancy.