The most common cause of diabetes, particularly type 2 diabetes, is poor diet and lack of exercise. This lifestyle factor contributes significantly to the development of insulin resistance and metabolic syndrome, which can lead to diabetes.
Type 1 diabetes, on the other hand, is primarily an autoimmune disorder, but the question seems to be targeting factors associated with the more prevalent type 2 diabetes.