Azelaic acid is used to treat mild to moderate acne, both comedonal acne and inflammatory acne. It belongs to a class of medication called dicarboxylic acids. It works by killing acne bacteria that infect skin pores. It also decreases the production of keratin, which is a natural substance that promotes the growth of acne bacteria.