The five key target genes (AKT1, VEGFA, ESR1, IL2, and MPO) identified by the compound–target network were closely related to the pathogenesis and/or treatment of vitiligo. Here, ESR1 is linked to vitiligo.