We found that KLF4 induced by ER stress could directly bind to the promoter of NUCB2 and promote NUCB2 expression, leading to the increase in melanoma ER stress resistance and cell metastasis. This evidence concerns the gene NUCB2 and melanoma.