In this study, six common immune-related candidate genes (PTGS2, FCGR1A, MMP9, VNN3, S100A12, and RRS1) for NAFLD and IS were identified via comprehensive bioinformatic analysis and machine learning algorithms. Here, VNN3P is linked to metabolic dysfunction-associated steatotic liver disease.