San Ildefonso was a ship of the Spanish Navy, built at Cartagena, Spain to a design by José Romero Fernández de Landa and launched in 1785. She was designed to be lighter than traditional Spanish vessels which had had difficulty matching the speed of ships of the Royal Navy. Though completed as a 74-gun ship, and always rated as such, San Ildefonso actually carried 80 cannons and obuses (howitzers) by the time of Trafalgar. She saw service against French and British vessels in the late 18th century, sailed twice to the Americas and was trapped in Cadiz by the British blockade. San Ildefonso was captured by the British third-rate at the Battle of Trafalgar and successfully weathered the storm afterwards to be taken into Royal Navy service as HMS Ildefonso.
San Ildefonso has been described as a technical milestone in 18th-century Spanish shipbuilding.[1] Having fought the Royal Navy in various wars the Spanish admirals were concerned that their ships could not match equivalent British vessels for speed.[1] San Ildefonso incorporated many amendments from traditional Spanish designs in order to improve her speed.[1] Instead of traditional iron bolts holding the hull together the vessel utilised much lighter wooden treenails, the upper parts of the ship were made from pine and cedar instead of oak to reduce weight and lower the centre of gravity and the vessel was constructed shorter in length than a traditional Spanish seventy-four would be.[1]
Although completed with 74 guns, she was later re-armed in accordance with the October 1803 Ordnance Regulations, and by the time of her participation at the Battle of Trafalgar, San Ildefonso actually carried a total of 80 guns, comprising 28 × 24-pounder long guns on her lower deck, 30 × 24-pounder long guns on her upper deck (having replaced the original 18-pounders on that level), 4 × 8-pounder long guns and 8 × 30-pounder obuses (howitzers) on her quarterdeck, 2 × 8-pounder long guns and 2 × 30-pounder obuses on her forecastle, and 6 × 24-pounder obuses on her poop.[2] However, unlike most other Spanish ships of the line (including all those present at Trafalgar), San Ildefonso did not carry any four-pounder anti-personnel obuses on her poop.[2]
San Ildefonso was designed by José Romero Fernández de Landa and built by him at the naval dockyard in Cartagena.[1] She was ordered on 23 February 1784 with her keel being laid down a little over a month later.[1] She took ten months to build, being launched on 22 January 1785.[1] She began a forty-day sea trial period on 19 August 1785 but shortly afterwards was disarmed at Cartagena and placed in reserve for two years and nine months.[1] San Ildefonso was refitted in 1788 and underwent more trials before being placed into reserve once more in October of that year.[1] She was reactivated again in April 1789 and made a cruise to Cádiz in August, becoming damaged on the way.[1] San Ildefonso underwent a third period of reserve later that year before being reactivated and having her interior layout rearranged.[1]
San Ildefonso then sailed on campaign against the French and British navies for four years beginning in 1793.[1] She returned to port at Cadiz on 3 March 1797 and was subsequently blockaded in that port by the Royal Navy.[1] San Ildefonso sailed to America twice from 1798 to 1802 as an escort to convoys of galleons.[1] During these voyages artillery officer Luis Daoiz de Torres, who would later lead the Spanish forces against French troops in the Dos de Mayo Uprising, served aboard the ship due to a shortage of trained naval officers.[1] [3] San Ildefonso was placed in reserve at Ferrol in 1802 for the last time in her career.[1] After another period of refit in July and August 1805 she joined the main Spanish fleet prior to the Battle of Trafalgar.[1] In her career to this point San Ildefonso had been in Spanish service for 21 years but had spent 9 of those years disarmed in reserve and had not fought any engagements.[1]
San Ildefonso and her commander, Brigadier (Commodore) José de Vargas, were captured by the British third-rate HMS Defence.[4] Defence was at the rear of the British line and so joined the battle later than most other ships but had already dismasted the French 74-gun ship before engaging San Ildefonso.[4] The Spanish vessel had already been damaged in the action and after a fierce fight lasting less than an hour surrendered to the British[4] Defence, having suffered casualties amounting to 34 dead and 126 wounded. San Ildefonso was successfully towed by the Defence to Gibraltar, surviving the storm that followed the battle.[4] She was taken into British service as HMS Ildefonso.[5] Ildefonso was laid up at Portsmouth until 3 April 1806 when she was placed under the command of newly promoted Captain John Quilliam, a veteran of Trafalgar. The ship was paid off in Portsmouth on 19 June but recommissioned on 22 July 1808 under Captain Edward Harvey. She was decommissioned later that year and reduced to a victualling storeship in Portsmouth and, later, Spithead. Being obsolete and of no further use after the conclusion of the Napoleonic Wars she was broken up in July 1816.[6]
The 145sqm naval ensign that San Ildefonso flew at the Battle of Trafalgar was hung in St Paul's Cathedral at Admiral Nelson's funeral on 9 January 1806.[7] The flag, damaged during the battle, was presented to the National Maritime Museum, Greenwich by the cathedral in 1907.[7]