BackgroundThe quality of the statistics on causes of death (CoD) does not present consolidated indicators in literature further than the coding group of ill-defined conditions of the International Classification of Diseases. Our objective was to assess the territorial quality of CoD by reliability of the official mortality statistics in Spain over the years 1980–2019.MethodsA descriptive epidemiological design of four decades (1980-, 1990-, 2000-, and 2010–2019) by region (18) and sex was implemented. The CoD cases, age-adjusted rates and ratios (to all-cause) were assigned by reliability to unspecific and ill-defined quality categories. The regional mortality rates were contrasted to the Spanish median by decade and sex by the Comparative Mortality Ratio (CMR) in a Bayesian perspective. Statistical significance was considered when the CMR did not contain the value 1 in the 95% credible intervals.ResultsUnspecific, ill-defined, and all-cause rates by region and sex decreased over 1980–2019, although they scored higher in men than in women. The ratio of ill-defined CoD decreased in both sexes over these decades, but was still prominent in 4 regions. CMR of ill-defined CoD in both sexes exceeded the Spanish median in 3 regions in all decades. In the last decade, women’s CMR significantly exceeded in 5 regions for ill-defined and in 6 regions for unspecific CoD, while men’s CMR exceeded in 4 and 2 of the 18 regions, respectively on quality categories.ConclusionsThe quality of mortality statistics of causes of death has increased over the 40 years in Spain in both sexes. Quality gaps still remain mostly in Southern regions. Authorities involved might consider to take action and upgrading regional and national death statistics, and developing a systematic medical post-grade training on death certification.