Background: Recently, with new diagnosis criteria, metabolic associated fatty liver disease (MAFLD) was introduced to replace the diagnosis of nonalcoholic fatty liver disease (NAFLD). Considering that there weren’t sufficient studies on MAFLD in China, we aimed to explore the relationship between MAFLD and H. pylori infection, as well as the potential risk factors of MAFLD.Methods: In this cross-sectional study, 3449 subjects were enrolled from a Hospital Health Management Center of Shantou in China between July 2020 and October 2021. All participants included had underwent blood test, 13C urea breath test (13C-UBT) and abdominal ultrasound examination. The association between H. pylori infection and MAFLD were analyzed using logistic regression. Machine learning approach were applied to explore independent risk factors of MAFLD.Results: The overall prevalence of MAFLD was 39.4% in our study population. Of a total of 3449 participants, MAFLD was diagnosed in 1043 of 2254 males (46.3%) and 315 of 1195 females (26.4%). The prevalence of MAFLD increased with age and peaked at the 60-69-year age group (overall participants: 58.8%; male: 56.2%; female: 64.0%), and then declined slightly in the 70-above-year age group. The result of multivariable logistic regression revealed that H. pylori infection was not significantly correlated with MAFLD. Using logistic regression and LASSO regression, we identified age, overweight/obesity, T2DM, hypertension, UA, TG, HDL and ALT as independent risk factors of MAFLD.Conclusions: The prevalence of MAFLD in Shantou of south China was relatively high, and the prevalence was higher in males than in females. Our results showed that H. pylori infection wasn’t associated with the risk of MAFLD, when age, overweight/obesity, T2DM, hypertension, UA, TG, HDL and ALT were independent risk factors of MAFLD.