Our analysis identified a robust prognostic model, with four AhR-related genes (MAP2K1, PRKACB, KLF5, and PIK3R2) emerging as key contributors to melanoma progression. Here, AHR is linked to melanoma.