In this study, we first obtained six AAM-RGs in vitiligo by searching the transcriptome dataset in the GEO database along with difference analysis and machine learning; then, PTGDS, PNPLA8, and MGLL were verified as the three key genes through the validation set. The gene discussed is PNPLA8; the disease is vitiligo.