We found that IL-17 deficiency (Il17−/−) disturbed the intestinal barrier, accompanied by intestinal flora alteration, which enhanced the severity of NAFLD/NASH. Here, IL17A is linked to metabolic dysfunction-associated steatotic liver disease.