I recently read Pirate Latitudes by Michael Crichton (2009).
This novel by MC was a bit off his beaten path of sci-fi works, and was found on his computer only AFTER his death in 2008.
Set in mid-1600s Jamaica, the lead character, Captain Charles Hunter (a pirate) embarked upon a venture to capture a Spanish treasure ship which was holed up in a South Pacific island fortress called Matanceros.
MC melds an interesting cast of characters with some of the usual human foibles (e.g., deceit, adultery, murder, greed, extortion, bribery, etc.) to create an entertaining tale of swashbuckling aplomb.
Sure miss the mind of MC, may he rest in peace.