We found that both MAFLD prevalence and severity was significantly associated with sarcopenia, further mediation analysis identified that CRP and HDL may mediate the impact of sarcopenia on MAFLD (p < 0.05). This evidence concerns the gene CRP and sarcopenia.