Azelaic acid functions by decreasing the concentration of DHT, which is believed to be a key factor in male pattern hair loss. Additionally, it has anti-inflammatory properties that may help to alleviate inflammation caused by topical treatments.