Immune infiltration analysis discovered an elevated presence of CD8 T cells, γδ T cells, and M2 macrophages in NAFLD livers, linking systemic inflammation to NAFLD and AF. This evidence concerns the gene CD8A and metabolic dysfunction-associated steatotic liver disease.