To investigate the risk of atrial fibrillation (AF) with sodium-glucose cotransporter-2 inhibitors (SGLT2is) compared to dipeptidyl peptidase-4 inhibitor (DPP4i) use in older US adults and across diverse subgroups. Here, SLC5A2 is linked to atrial fibrillation.