People who have type 2 diabetes often have low levels of magnesium in the blood. A large clinical study of over 2,000 people found that getting more magnesium in the diet may help protect against developing type 2 diabetes. Some -- though not all -- studies suggest that taking magnesium supplements may help blood sugar control and insulin sensitivity in people with diabetes or prediabetes.