This study evaluated the distribution of PNPLA3 rs738409, TM6SF2 rs58542926, and HSD17B13 rs6834314 and overall survival of HCC patients with metabolic dysfunction-associated steatotic liver disease (MASLD-HCC) and viral-related HCC (VIRAL-HCC). This evidence concerns the gene TM6SF2 and liver disorder.