The mechanisms responsible for the evolution of steatosis towards NASH (non-alcoholic steatohepatitis) and fibrosis are not completely defined. In the present study we evaluated the role of CD4(+) T-helper (Th) cells in this process. We analysed the infiltration of different subsets of CD4(+) Th cells in C57BL/6 mice fed on a MCD (methionine choline-deficient) diet, which is a model reproducing all phases of human NASH progression. There was an increase in Th17 cells at the beginning of NASH development and at the NASH-fibrosis transition, whereas levels of Th22 cells peaked between the first and the second expansion of Th17 cells. An increase in the production of IL (interleukin)-6, TNFα (tumour necrosis factor α), TGFβ (transforming growth factor β) and CCL20 (CC chemokine ligand 20) accompanied the changes in Th17/Th22 cells. Livers of IL-17(-/-) mice were protected from NASH development and characterized by an extensive infiltration of Th22 cells. In vitro, IL-17 exacerbated the JNK (c-Jun N-terminal kinase)-dependent mouse hepatocyte lipotoxicity induced by palmitate. IL-22 prevented lipotoxicity through PI3K (phosphoinositide 3-kinase)-mediated inhibition of JNK, but did not play a protective role in the presence of IL-17, which up-regulated the PI3K/Akt inhibitor PTEN (phosphatase and tensin homologue deleted on chromosome 10). Consistently, livers of IL-17(-/-) mice fed on the MCD diet displayed decreased activation of JNK, reduced expression of PTEN and increased phosphorylation of Akt compared with livers of wild-type mice. Hepatic infiltration of Th17 cells is critical for NASH initiation and development of fibrosis in mice, and reflects an infiltration of Th22 cells. Th22 cells are protective in NASH, but only in the absence of IL-17. These data strongly support the potentiality of clinical applications of IL-17 inhibitors that can prevent NASH by both abolishing the lipotoxic action of IL-17 and allowing IL-22-mediated protection.