Final answer:
Type 1 diabetes is genetic, while type 2 diabetes is primarily caused by insulin resistance and impaired insulin secretion.
Step-by-step explanation:
Type 1 diabetes is a genetic condition where the immune system mistakenly attacks and destroys the cells in the pancreas that produce insulin. While genetics play a role, other factors such as certain viral infections may trigger the development of type 1 diabetes as well. On the other hand, type 2 diabetes is primarily caused by a combination of insulin resistance, where the body's cells don't properly respond to insulin, and impaired insulin secretion. Obesity and high sugar consumption are risk factors for type 2 diabetes, but they are not the sole causes.