Endoplasmic reticulum (ER) stress is closely associated with several chronic diseases such as obesity, atherosclerosis, type 2 diabetes, and hepatic steatosis. Steatosis in hepatocytes may also lead to disorders such as nonalcoholic fatty liver disease (NAFLD) and nonalcoholic steatohepatitis (NASH), fibrosis, and possibly cirrhosis. Opioid peptides are involved in triglyceride and cholesterol dysregulation. Naltrexone also attenuates ER stress induced hepatic steatosis in mice. In this study, we evaluated the effects of naltrexone on the expression of lipid metabolism‐related nuclear factors and enzymes in the ER stress induced hepatic steatosis. C57/BL6 mice received saline, DMSO and naltrexone as control groups. In a fourth group, ER stress was induced by tunicamycin (TM) injection and in the last group, naltrexone was given before TM administration. Histopathological evaluations, real‐time RT‐PCR and western blot were performed. We found that GRP78, IRE1α, PERK and ATF6 gene expression and steatosis significantly reduced in naltrexone treated animals. Naltrexone alleviated the gene and protein expression of SREBP1c. Expression of ACAT1, apolipoprotein B (ApoB) and PPARα also increased after naltrexone treatment. In conclusion, this study, for the first time, shows that naltrexone has a considerable role in attenuation of ER stress‐induced liver injury.