In conclusion, six hub genes (IRF1, JAK2, CD8A, IRF8, STAT5B, and SELL) were discovered to distinguish the response of melanoma patients under anti-PD-1 immunotherapy via WGCNA and integrated bioinformatics. The gene discussed is CD8A; the disease is melanoma.