Polyacrylamide is used in cosmetics as a thickening agent, helping to enhance the texture and viscosity of products such as creams, lotions, and gels. It also acts as a stabilizer, improving the shelf life and durability of these formulations.