BackgroundPneumococcal pneumonia (PP) is a serious infection caused by Streptococcus pneumoniae (pneumococcus), with a wide spectrum of clinical manifestations. The aim of this study was to analyze the comorbidity factors that influenced the mortality in patients with asplenia according to PP.MethodsDischarge reports from the Spanish Minimum Basic Data Set (MBDS) was used to retrospectively analyze patients with asplenia and PP, from 1997 to 2021. Elixhauser Comorbidity Index (ECI) was calculated to predict in-hospital mortality (IHM).Results97,922 patients with asplenia were included and 381 cases of PP were identified. The average age for men was 63.87 years and for women 65.99 years. In all years, ECI was larger for splenectomized than for non-splenectomized patients, with men having a higher mean ECI than women. An association was found between risk factors ECI, splenectomy, age group, sex, pneumococcal pneumonia, and increased mortality (OR = 0.98; 95% CI: 0.97–0.99; p < 0.001). The IHM increased steadily with the number of comorbidities and index scores in 1997–2021.ConclusionsAsplenia remain a relevant cause of hospitalization in Spain. Comorbidities reflected a great impact in patients with asplenia and PP, which would mean higher risk of mortality.