This is a list of Spanish ships of the line (comprising the battlefleet) built or acquired during the period 1640-1854:
Those with 94 or more guns were three-deckers, while all the others listed were two-deckers. The Spanish term for ships of the line was navíos, but during the latter part of the Habsburg era (until 1700) ships continued to be designated as galeón. Those ships with secular names (e.g. royal, geographical or adjectival names) were additionally given an official religious name (or advocación) which appears below in parentheses following the secular name.
Until 1716 there was not one single Spanish Navy but several naval forces, of which the Armada del Mar Océano was the primary one but several other distinct forces existed. The Real Armada ("Royal Navy") was created by the newly-established Bourbon government in 1716, but the other armadas (in Spanish, the word "armada" is used for both "navy" and "fleet") endured for several years thereafter. During the early 1750s, the term Real Armada was replaced by Armada Española.
Note that surviving 68-gun ships were re-rated as 70 guns in 1770 and as 74-gun ships in October 1793.
This era commenced with the recruitment of British leading shipwrights who became the principal builders at the Naval Dockyards.
[Note that the Guipuzcoano 64 - captured by the United Kingdom in 1780 and renamed Prince William - was a private ship of the Real Compañía Guipuzcoana de Caracas, and was not part of the Spanish Navy.]
Spain completed no further ships of the line after 1796 for more than half a century, although three ships were under construction in Ferrol and Havana at the time of the French occupation (work on them ceased and they were all broken up on the stocks), and five 74-gun ships were acquired from Russia in February 1818, although these were in poor condition and were quickly taken to pieces without seeing any service. Finally, two 86-gun ships were ordered in 1850 and laid down on 19 November and 2 December 1850 respectively.
Media related to Ships of the line of Spain at Wikimedia Commons