Increasing the amount of magnesium in your diet can help reduce your craving for sugar.