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. The gene discussed is CYP3A4; the disease is hepatocellular carcinoma.