There are three main types of diabetes: type 1 diabetes, type 2 diabetes, and gestational diabetes. Type 1 diabetes is usually diagnosed in children and young adults and is an autoimmune disease where the body attacks and destroys insulin-producing cells. Type 2 diabetes is more common and occurs when the body becomes resistant to insulin or doesn't produce enough insulin. Gestational diabetes occurs during pregnancy and usually goes away after delivery.