Metformin (odds ratio (OR), 0.74; P=0.001), dipeptidyl peptidase-4 inhibitors (DPP4i) (OR, 0.88; P=0.04), sodium-glucose cotransporter-2 inhibitors (SGLT2i) (OR, 0.82; P=0.001), and glucagon-like peptide-1 receptor agonists (GLP1RA) (OR, 0.91; P=0.02) treatment were associated with lower COVID-19 mortality in individuals with diabetes compared to respective non-users. This evidence concerns the gene DPP4 and diabetes mellitus.