Xanthan gum is a widely used natural thickening and stabilizing agent in pharmaceutical formulations. It improves the viscosity and stability of suspensions, emulsions, and gels. It is also used in controlled-release systems and ophthalmic preparations.