From the English Wikipedia page [1]: there is more information on the Catalan [2] and Spanish [3] Wikipedia pages.

National Historical Archive (Spain)

The National Historical Archive of Spain is based in Serrano Street in Madrid. It was founded in 1866 when it shared a building with the Real Academía de la Historia.

The collections of the Archive include sections housed outside Madrid, for example the General Archive of the Spanish Civil War in Salamanca.

See also List of archives in Spain

The website, in Spanish, is [4].