Tromethamine, also known as tris(hydroxymethyl)aminomethane, is commonly used in cosmetics as a buffering agent to adjust the pH levels. It helps to stabilize the pH of skincare and haircare products, enhancing their effectiveness and improving overall product stability.