Propylparaben is a commonly used preservative in cosmetics to prevent bacterial and fungal growth, thus extending the shelf-life of the product. It is effective in inhibiting microbial contamination and ensuring the safety and stability of the cosmetic formulation.