This study indicated that the TyG index was positively associated with NAFLD patients with AF, after additional adjustment for age, gender, AF type, dyslipidemia, diabetes, BMI, eGFR, AST, ALT, HDL-C, UA, hypertension, and smoking. This evidence concerns the gene GPT and diabetes mellitus.