Sugar doesn’t directly cause type 2 diabetes. But you are more at risk of developing it if you are overweight. You gain weight when you take in more calories than your body needs, and high-sugar foods and beverages contain a lot of calories.