Our analysis identified a robust prognostic model, with four AhR-related genes (MAP2K1, PRKACB, KLF5, and PIK3R2) emerging as key contributors to melanoma progression. This evidence concerns the gene KLF5 and melanoma.