If is in this sentence what does it mean...They were from the Spanish bark San Lucar that had bad luck to go on rocks out there?

In this context "That" has following meanings:

- used to indicate a particular person or thing close at hand or being indicated or experienced.

- used to refer to a specific thing previously mentioned or known

- used to refer to a following clause.

Copyright Wanderlust World © https://www.ynyoo.com