Xanthan gum is used for diabetes, constipation, dry eye, and many other conditions, but there is no good scientific evidence to support most of these uses. In manufacturing, xanthan gum is used as a thickening and stabilizing agent in foods, toothpastes, and medicines.