Using WGCNA combined with supervised machine learning algorithms, we identified a novel CAFs-related panel, including six genes (CDK14, SYNPO2, TCF4, GJA1, CPXM1, TFPI), which can distinguish the response of melanoma patients under anti-PD-1 immunotherapy. Here, TCF4 is linked to melanoma.