A total of 4,771 patients with T2D and AF who were newly prescribed SGLT2 inhibitors or DPP4 inhibitors were selected and matched in a 1:2 ratio by propensity score with 37 confounding variables. The gene discussed is DPP4; the disease is atrial fibrillation.