PurposeThis research analyses the solvency behaviour of systemically important (or systemic) Spanish banks, focusing on their credit risk management during the subprime mortgage crisis and the COVID-19 pandemic.Design/methodology/approachThe top three Spanish banks (BBVA, Banco Santander and Caixabank) were selected as a representative sample. Key indicators, such as the volume of assets, amount of financing or loans to clients, non-performing loan (NPL) ratio, reported volume of write-offs, equity and share capital, were analysed to assess their solvency and credit risk management. Furthermore, from the variables evaluated, a structural equation model has been proposed to evaluate the structural relationships among the variables.FindingsThe results indicate a significant reorganisation of these institutions after the subprime crisis. This reorganisation was crucial for providing the necessary room to manoeuvre to overcome the challenges posed by the COVID-19 crisis. However, the study highlights the importance of implementing preventive management policies to handle future crises effectively.Originality/valueThis study provides valuable insights into the solvency and credit risk management of systemic Spanish banks during two major financial crises. The evidence presented is particularly relevant for bank managers and policymakers, offering guidance on effective credit risk treatment and crisis management strategies.