Background: The liver is the primary organ for frontline immune defense and lipid metabolism. Excessive lipid accumulation in the liver severely affects its metabolic homeostasis and causes metabolic diseases. Docosahexaenoic acid (DHA) is known for its beneficial effects on lipid metabolism and anti-inflammation, but its molecular mechanism remains unknown, especially in fish. In this study, we evaluated the protective effects of DHA on hepatic steatosis of grass carp (Ctenopharyngodon idella) in vivo and in vitro and mainly focused on lipogenesis and inflammation. Grass carp were fed with purified diets supplemented with 0%, 0.5% and 1% DHA for 8 weeks in vivo. Hepatocytes were treated with palmitic acid (PA) (200 μM) with or without DHA (50 or 100 μM) for 24 h in vitro. In addition, Compound C (CC, the inhibitor of AMP-activated protein kinase) was used to examine the mechanism of DHA on hepatic steatosis in vitro.Results: In this study, 1% DHA significantly decreased the liver triglyceride (TG), malondialdehyde (MDA), serum tumor necrosis factor α (TNFα) and nuclear factor kappa B (NFκB) contents. DHA (100 μM) effectively attenuated PA-induced lipid accumulation (P<0.05). Furthermore, DHA significantly inhibited endoplasmic reticulum (ER) stress and stimulated the expression of AMP-activated protein kinase (AMPK) and its downstream factors related to hepatic inflammation and lipogenesis in vivo and in vitro. However, the effects of DHA could be abrogated by CC in vitro.Conclusions: DHA exerted a protective effect on hepatic steatosis by inhibiting ER stress, improving antioxidant ability, relieving hepatic inflammation and inhibiting hepatic lipogenesis in an AMPK-dependent manner. Our findings give a theoretical foundation for further elucidation of the beneficial role of DHA in vertebrates.