Azelaic acid is used in cosmetic formulations for its ability to treat acne and hyperpigmentation. It works by exfoliating the skin, unclogging pores, and reducing inflammation, resulting in clearer and brighter skin.