Spanish treasure fleet
The capture of the Spanish treasure fleet, with Jack in command of HMS "Lively", is based on the 1804 Battle of Cape Santa Maria (battle recounted in "Post Captain").