Abstract Background We aimed to explore the three-way interaction among age, gender, and kidney function on the risk of all-cause mortality and cardiovascular mortality among patients with type 2 diabetes (T2D). Methods In a retrospective cohort study, patients aged > 40 years with T2D with serum creatinine and urine albumin measured from 2013 to 2019 were included from a multi-institutional diabetes registry. The exposure was estimated glomerular filtration rate (eGFR), outcomes were all-cause mortality (primary outcome) and cardiovascular disease (CVD) mortality (secondary outcome). We applied multivariable cox proportional hazards regression analysis to compute the association between eGFR and mortality. Results A total of 36,556 patients were followed for up to 6 years during which 2492 (6.82%) died from all causes, and 690 (1.9%) died from CVD. We observed a significant three-way interaction (p = 0.021) among age (younger,