In summary, our study indicates that KLF4 was an important regulator in melanoma adaptation to ER stress and cell metastasis. This evidence concerns the gene KLF4 and melanoma.