Assuming that the mediating effect holds, our estimates indicate that cardiometabolic traits (e.g. TC, TyG index, γ-GT, ALT and ALP) mediate 6·7–22·2 % of the associations between famine exposure and higher NAFLD risk. Here, GPT is linked to metabolic dysfunction-associated steatotic liver disease.