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. This evidence concerns the gene FCGR1A and metabolic dysfunction-associated steatotic liver disease.