What was the fate of the Spanish ship San Ildefonso after being captured by the British?

A. She was abandoned at sea due to extensive damage
B. She was sold to the French Navy as a prize of war
C. She was sunk by the British Navy during the battle
D. She was successfully towed to Gibraltar and taken into British service
Answer: 