Sweets, unhealthy foods and sugar cause type 2 diabetes because the body gets damaged if you eat a lot of these. The body continues producing insulin but, it doesn't get it going through the system...
Obesity.
It can trigger it, since a part of your insulin must react with your fat cells. As you gain weight more is sequestered there.
An unbalanced predominance of high Glycemic, junk carbohydrates in a diet.