By 1805 , Spain was once more aligned with France , and Spanish ships fought alongside the French against Nelson at Trafalgar .
At the Battle of Trafalgar Admiral Nelson fought both French and Spanish ships .