Oh, and a classic pirate novel by Rafael Sabatini from 1922, Captain Blood.
A wonderfully old-fashioned swashbuckler! The wronged and noble hero - a doctor - makes the mistake of tending the wounds of a rebel, is wrongly condemned for treason, sold into slavery in the Caribbean, rebels in his own turn, and escapes... into a life of piracy. Turns out he's really really good at it. Though secretly he's still darn noble, all for the love of a Good Woman. Sea battles, intrigue, romance. And all ends well. Classic fun!
HERE's a Wikipedia article.
Early novel cover for Captain Blood, public domain Wikipedia