Most cases (95%) of type 1 diabetes mellitus are the result of environmental factors interacting with a genetically susceptible person. This interaction leads to the development of autoimmune disease directed at the insulin-producing cells of the pancreatic islets of Langerhans. These cells are progressively destroyed, with insulin deficiency usually developing after the destruction of 90% of islet cells.

Though it may be transient, untreated GDM can damage the health of the fetus or mother. Risks to the baby include macrosomia (high birth weight), congenital heart and central nervous system abnormalities, and skeletal muscle malformations. Increased levels of insulin in a fetus's blood may inhibit fetal surfactant production and cause infant respiratory distress syndrome. A high blood bilirubin level may result from red blood cell destruction. In severe cases, perinatal death may occur, most commonly as a result of poor placental perfusion due to vascular impairment. Labor induction may be indicated with decreased placental function. A caesarean section may be performed if there is marked fetal distress or an increased risk of injury associated with macrosomia, such as shoulder dystocia.[51]
Type 2 diabetes primarily occurs as a result of obesity and lack of exercise.[1] Some people are more genetically at risk than others.[6] Type 2 diabetes makes up about 90% of cases of diabetes, with the other 10% due primarily to diabetes mellitus type 1 and gestational diabetes.[1] In diabetes mellitus type 1 there is a lower total level of insulin to control blood glucose, due to an autoimmune induced loss of insulin-producing beta cells in the pancreas.[12][13] Diagnosis of diabetes is by blood tests such as fasting plasma glucose, oral glucose tolerance test, or glycated hemoglobin (A1C).[3]

People with full-blown type 2 diabetes are not able to use the hormone insulin properly, and have what’s called insulin resistance. Insulin is necessary for glucose, or sugar, to get from your blood into your cells to be used for energy. When there is not enough insulin — or when the hormone doesn’t function as it should — glucose accumulates in the blood instead of being used by the cells. This sugar accumulation may lead to the aforementioned complications.