For people with prediabetes, diabetes, or another condition that can affect blood sugar. Diet is an important factor to regulate blood sugar levels. While factors like body weight, activity, stress, and genetics also play a role in maintaining blood sugar levels. Following a healthy diet is critical to blood sugar control.