ImportanceSodium-glucose cotransport protein 2 inhibitors (SGLT-2is) have demonstrated associations with positive kidney-related and cardiovascular outcomes in patients with type 2 diabetes. However, the association of SGLT-2is with outcomes among patients with type 2 diabetes and acute kidney disease (AKD) remains unclear.ObjectiveTo examine the long-term associations of SGLT-2is with mortality, major adverse kidney events (MAKEs), and major adverse cardiovascular events (MACEs) in patients with type 2 diabetes and AKD.Design, Setting, and ParticipantsThis cohort study used global health care data (the TriNetX database) spanning from September 30, 2002, to September 30, 2022. Propensity score matching was used to select a cohort of patients, and follow-up was conducted with a maximum duration of 5 years (completed on September 30, 2022) or until the occurrence of an outcome or death.InterventionThe use of SGLT-2is.Main Outcomes and MeasuresThe primary outcomes measured were mortality, MAKEs, and MACEs. Adjusted hazard ratios (AHR) with 95% CIs were calculated to compare the risks between SGLT-2i users and nonusers, representing the mean treatment effect among the treated patients.ResultsA total of 230 366 patients with AKD (mean [SD] age, 67.1 [16.4] years; 51.8% men and 48.2% women) were enrolled in the study, which had a median follow-up duration of 2.3 (IQR, 1.2-3.5) years. Among these, 5319 individuals (2.3%) were identified as SGLT-2i users. Among nonusers, the incidence of mortality was 18.7%, the incidence of MAKEs was 21.0%, and the incidence of MACEs was 25.8%. After propensity score matching, the absolute differences between SGLT-2i users and nonusers for incidence of mortality, MAKEs, and MACEs were 9.7%, 11.5%, and 12.3%, respectively. Based on the treated population, SGLT-2i use was associated with a significantly lower risk of mortality (AHR, 0.69 [95% CI, 0.62-0.77]), MAKEs (AHR, 0.62 [95% CI, 0.56-0.69]), and MACEs (AHR, 0.75 [95% CI, 0.65-0.88]) compared with nonuse. External validation using a multicenter cohort data set of 1233 patients with AKD patients who were SGLT-2i users confirmed the observed beneficial outcomes. Notably, the risk reduction associated with SGLT-2is remained significant even among patients without hypertension, those with advanced chronic kidney disease, and those not receiving other hypoglycemic agents.Conclusions and RelevanceIn this cohort study of patients with type 2 diabetes and AKD, administration of SGLT-2is was associated with a significant reduction in all-cause mortality, MAKEs, and MACEs when compared with nonuse, underscoring the importance of SGLT-2is in care after acute kidney injury. These findings emphasize the potential benefits of SGLT-2is in managing AKD and mitigating the risks of major cardiovascular and kidney diseases.