In conclusion, to our knowledge, this study is the first to show that melatonin regulates ER stress-induced autophagy via the PERK-ATF4-Beclin1 pathway to overcome apoptosis resistance and increase the sensitivity of HCC cells to sorafenib. This evidence concerns the gene ATF4 and hepatocellular carcinoma.