Metabolic associated fatty liver disease is a novel concept defined as fatty liver associated with metabolic disorders. We investigated the effect of metabolic associated fatty liver disease on hepatocellular carcinoma patient mortality. A total of 624 patients with hepatocellular carcinoma between 2012 and 2020 were enrolled in this retrospective study. Hepatic steatosis was diagnosed using computed tomography or magnetic resonance imaging. Metabolic associated fatty liver disease was defined based on the proposed criteria in 2020. Propensity score matching was performed for patients with metabolic associated fatty liver disease and those without the condition. A Cox proportional hazards regression model was used to evaluate the association between metabolic associated fatty liver disease and hepatocellular carcinoma patient outcomes. Patients with hepatocellular carcinoma and metabolic associated fatty liver disease tended to achieve better outcomes than did those without metabolic associated fatty liver disease after matching (p<0.001). Metabolic associated fatty liver disease was significantly associated with better prognosis in patients with concurrent hepatitis B infection (p<0.001). Moreover, high levels of hepatitis B viral DNA in serum samples was associated with a significantly increased risk of death in patients without non-metabolic associated fatty liver disease (p=0.045). Additionally, the association between metabolic associated fatty liver disease and survival in hepatitis B virus-related hepatocellular carcinoma was similar in all subgroups based on metabolic traits. Metabolic associated fatty liver disease increases the survival rate of patients with hepatocellular carcinoma and hepatitis B virus infection. The potential interaction of steatosis and virus replication should be considered for future research and clinical treatment strategies.