In summary, by bioinformatics analysis, we identified and verified the hub genes associated with NAFLD-to-HCC transition and found that CD4, UGT2B7, and CYP3A4 may serve as the potential biomarkers of NAFLD-HCC. This evidence concerns the gene CD4 and hepatocellular carcinoma.