In conclusion, using data from nationally representative samples of Medicare beneficiaries, we identified that the use of SGLT2 inhibitors compared with the use of DPP4 inhibitors was associated with a lower risk of AF. Here, SLC5A2 is linked to atrial fibrillation.