NAFLD was significantly associated with the cagA positive group (OR: 1.28, 95% CI: 1.07–1.53) and cagA negative group (OR: 1.62, 95% CI: 1.30–2.03) in univariate analysis. This evidence concerns the gene S100A8 and metabolic dysfunction-associated steatotic liver disease.