Introduction: Diabetes has been linked with poor clinical prognosis of hospitalized COVID-19 patients. In this nationwide database retrospective study we evaluated diabetes as a risk factor of in-hospital death. Methods: We analysed data from discharge reports from 2020 of hospitalized COVID-19 patients sent to the Polish National Health Fund. To assess the risk of in-hospital death attributed to diabetes, several multivariate logistic regression models were used. In each model in-hospital death was estimated with explanatory variables, including diabetes. Models were built either on the whole cohorts or cohorts matched with propensity score matching (PSM). They examined either main effects or included interaction of diabetes with other variables. Results: We included 174,621 patients with COVID-19 infection hospitalized in Poland in 2020. There were 40,168 diabetic patients (DPs), proportion higher than in the general population (23.0% vs. 9.5%, p<0.001). Overall, 17,438 in-hospital deaths were recorded, the mortality was higher in DPs vs. nondiabetics (16.3% vs. 8.1%, p<0.001). Multivariate logistic regressions showed that diabetes was an independent risk factor of death, regardless of sex and age. In the main effect analysis, odds of in-hospital death were higher by 28.3% for DPs than for nondiabetic patients. Similarly, PSM analysis including 101,578 patients, of whom 19,050 had diabetes, showed that the risk of death was higher in DPs regardless of sex and age. Odds of in-hospital death were higher by 34.9% for DPs. The impact of diabetes on COVD-19 in-hospital death differed among age groups and was the highest for patients aged 60-69. Conclusions: This nationwide study confirmed that diabetes was an independent risk of in-hospital death in the course of COVID-19. However, the relative risk attributed to diabetes might be lower than reported earlier from most of other populations and differ significantly across the age groups. Disclosure M. Kania: None. B. Kon: None. K.M. Kaminski: Other Relationship; Roche Pharmaceuticals. J. Hohendorff: Speaker's Bureau; Abbott, Novo Nordisk, Ascensia Diabetes Care, Dexcom, Inc., Bayer Inc. T. Klupa: Speaker's Bureau; Medtronic. Advisory Panel; Abbott Diabetes. Speaker's Bureau; Abbott Diabetes. Advisory Panel; Ascensia Diabetes Care. Speaker's Bureau; Eli Lilly and Company, Novo Nordisk. Advisory Panel; Sanofi, BIOTON S.A. Speaker's Bureau; Boehringer Ingelheim Inc., Servier Laboratories. P.W. Witek: Other Relationship; Abbott Diabetes, Ascensia Diabetes Care, Medtronic, Novo Nordisk, Sanofi-Aventis Deutschland GmbH, Boehringer-Ingelheim, Roche Diabetes Care, BIOTON S.A., KRKA. M. Malecki: Advisory Panel; Abbott Diabetes. Speaker's Bureau; AstraZeneca, AlfaSigma. Advisory Panel; Novo Nordisk, Lilly, Sanofi. Speaker's Bureau; Merck & Co., Inc. Research Support; Medtronic. Advisory Panel; Dexcom, Inc. Speaker's Bureau; BIOTON S.A., Servier Laboratories, KRKA. Advisory Panel; Bayer Inc. Funding National Centre for Research and Development CRACoV-HHS project (SZPITALE-JEDNOIMIENNE/18/2020)