Herein, TYR, TYRP1, DCT, and LARP7 were chosen as biomarkers to identify vitiligo by combining machine learning algorithm and WGCNA. Here, TYR is linked to vitiligo.