Resveratrol prevents hepatic steatosis and endoplasmic reticulum stress and regulates the expression of genes involved in lipid metabolism, insulin resistance, and inflammation in rats.