Sex disparities constitute a significant issue in hepatocellular carcinoma (HCC). However, the mechanism of gender dimorphism in HCC is still not completely understood. 5-Hydroxymethylcytosine (5hmC)-Seal technology was utilised to detect the global 5hmC levels from four female and four male HCC samples. Methylation of XIST was detected by Sequenom MassARRAY methylation profiling between HCC tissues (T) and adjacent normal liver tissues (L). The role of Tet methylcytosine dioxygenase 2 (TET2) was investigated using diethylnitrosamine (DEN)-administered Tet2-/- female mice, which regulated XIST in hepatocarcinogenesis. All statistical analyses were carried out by GraphPad Prism 9.0 and SPSS version 19.0 software. The results demonstrated that the numbers of 5hmC reads in the first exon of XIST from female HCC tissues (T) were remarkably lower than that in female adjacent normal liver tissues (L). Correspondingly, DNA methylation level of XIST first exon region was significantly increased in female T than in L. By contrast, no significant change was observed in male HCC patients. Compared to L, the expression of XIST in T was also significantly downregulated. Female patients with higher XIST in HCC had a higher overall survival (OS) and more extended recurrence-free survival (RFS). Moreover, TET2 can interact with YY1 binding to the promoter region of XIST and maintain the hypomethylation state of XIST. In addition, DEN-administered Tet2-/- mice developed more tumours than controls in female mice. Our study provided that YY1 and TET2 could interact to form protein complexes binding to the promoter region of XIST, regulating the methylation level of XIST and then affecting the expression of XIST. This research will provide a new clue for studying sex disparities in hepatocarcinogenesis. XIST was significantly downregulated in HCC tissues and had gender disparity. Methylation levels in the XIST first exon were higher in female HCC tissues, but no significant change in male HCC patients. The TET2-YY1 complex regulate XIST expression in female hepatocytes. Other ways regulate XIST expression in male hepatocytes.