This study presents a comprehensive analysis of AhR-related genes in melanoma, highlighting MAP2K1, PRKACB, KLF5, and PIK3R2 as key prognostic markers and potential therapeutic targets. Here, KLF5 is linked to melanoma.