Benzoic acid is commonly used as a preservative in cosmetics and personal care products to prevent the growth of bacteria and fungi. It helps to extend the shelf life of products such as creams, lotions, and shampoos by inhibiting microbial growth.