In type 1 diabetes, the body's immune system attacks and destroys the pancreatic cells that make insulin.