Type 1 diabetes is an autoimmune condition in which the body mistakenly attacks and destroys the insulin-producing cells in the pancreas.