The seasonal fluctuation in mortality and hospital admissions from respiratory diseases, with a winter peak and a summer trough, is widely recognized in extratropical countries. However, little is known about the seasonality of inpatient mortality and the role of ambient temperature remains uncertain. We aimed to analyse the association between ambient temperature and in-hospital mortality from respiratory diseases in the provinces of Madrid and Barcelona, Spain. We used data on daily hospitalisations, weather (ie, temperature and relative humidity) and air pollutants (ie, PM2.5, PM10, NO2and O3) for the Spanish provinces of Madrid and Barcelona during 2006-2019. We applied a daily time-series quasi-Poisson regression in combination with distributed lag non-linear models (DLNM) to assess, on the one hand, the seasonal variation in fatal hospitalisations and the contribution of ambient temperature, and on the other hand, the day-to-day association between temperature and fatal hospital admissions. The analyses were stratified by sex, age and primary diagnostic of hospitalisation. The study analysed 1710012 emergency hospital admissions for respiratory diseases (mean [SD] age, 60.4 [31.0] years; 44.2% women), from which 103845 resulted in in-hospital death (81.4 [12.3] years; 45.1%). We found a strong seasonal fluctuation in in-hospital mortality from respiratory diseases. While hospital admissions were higher during the cold season, the maximum incidence of inpatient mortality was during the summer and was strongly related to high temperatures. When analysing the day-to-day association between temperature and in-hospital mortality, we only found an effect for high temperatures. The relative risk (RR) of fatal hospitalisation at the 99th percentile of the distribution of daily temperatures vs the minimum mortality temperature (MMT) was 1.395 (95% eCI: 1.211-1.606) in Madrid and 1.612 (1.379-1.885) in Barcelona. In terms of attributable burden, summer temperatures (June-September) were responsible for 16.2% (8.8-23.3) and 22.3% (15.4-29.2) of overall fatal hospitalisations from respiratory diseases in Madrid and Barcelona, respectively. Women were more vulnerable to heat than men, whereas the results by diagnostic of admission showed heat effects for acute bronchitis and bronchiolitis, pneumonia and respiratory failure. Unless effective adaptation measures are taken in hospital facilities, climate warming could exacerbate the burden of inpatient mortality from respiratory diseases during the warm season. European Research Council Consolidator Grant EARLY-ADAPT, European Research Council Proof-of-Concept Grants HHS-EWS and FORECAST-AIR.