Type 1 and type 2 diabetes can both occur due to genetics, but you can also develop type 2 diabetes from certain lifestyle factors. Type 1 diabetes is an autoimmune disorder that prevents your pancreas from being able to produce insulin. This usually begins in childhood or adolescence and remains a chronic condition throughout life.
Meanwhile, type 2 diabetes can develop when the pancreas itself has issues that the immune system doesn’t cause. Pancreatic dysfunction can make it harder for your body to maintain its insulin levels. While other diabetic causes like insulin resistance can run in the family, diabetes can result from obesity, physical inactivity, and an unregulated diet.