Nowadays, there is glamour associated with pirates from the 17th to 18th centuries – think Johnny Depp. But curiously there