Background: Fluid retention is a known but underappreciated side-effect of non-steroidal anti-inflammatory drug (NSAID) use. As type 2 diabetes mellitus (T2DM) has been linked to both subclinical cardiomyopathy and a decline in kidney function, short-term NSAID use could lead to subsequently development of heart failure (HF) due to aberrations in fluid balances. Purpose: We investigated associations between short-term NSAID use and the risk of HF in a nationwide cohort of patients with T2DM. Methods: Using nationwide Danish registers, we identified patients diagnosed with T2DM during 1998–2018. Follow-up began 120 days after first-time T2DM diagnosis among patients without prior heart failure or a rheumatological diagnosis indicating long-term NSAID use. To describe use of NSAID among patients with T2DM, we reported proportions of patients claiming at least 1, 2, 3 or 4 prescriptions of NSAID within one year of start of follow-up. We investigated associations between use of NSAIDs (celecoxib, diclofenac, ibuprofen and naproxen) and new-onset HF hospitalizations using a case-crossover design with 28-day exposure windows and reported odds ratios (OR) with 95% confidence intervals (CI). The case-crossover design uses each individual as his or her own control making it suitable to study the effect of short-term exposure on immediate events while mitigating unmeasured confounding. Sensitivity analyses using exposure windows of 14 and 42 days were performed as well. Results: A total of 334,950 patients with T2DM was included (47.7% female, median age of 61 [interquartile range 50–70]). Celecoxib and naproxen were rarely used; on the contrary, prescriptions of diclofenac and ibuprofen were claimed at least once within one year from the beginning of follow-up by 4.9% and 15.5% of patients, respectively–0.9% and 2.7% claimed at least four prescriptions (Figure 1). The risk of new-onset HF hospitalization was increased following use of diclofenac or ibuprofen with corresponding ORs of 1.3 (95% CI 1.0 to 1.7) and 1.3 (95% CI 1.1 to 1.5) using 28-day exposure windows. An increased risk following use of celecoxib or naproxen was not found (Figure 2). Conclusion: NSAIDs diclofenac and ibuprofen were both widely used and associated with an increased risk of new-onset HF hospitalization in patients with T2DM. This suggests a previously unknown and serious, clinically relevant concern of NSAID use in patients with T2DM. Funding Acknowledgement: Type of funding sources: Private grant(s) and/or Sponsorship. Main funding source(s): Ib Mogens Kristiansens Almene FondHelsefonden