Xanthan gum is a natural ingredient commonly used in cosmetics as a thickening agent and stabilizer to create a smooth and uniform texture in products like lotions, creams, and serums. It helps to improve the consistency, viscosity, and overall performance of cosmetic formulations.