I remember reading that pirates normally sailed smaller ships, so getting into a firefight with a galleon would be unwise. What other methods would these pirates employ to capture large vessels?
Take a look at the The Golden Age of Piracy, Life of a Pirate and Other Related Topics FAQ. There is at least one question in there that can help, if not several, for answering that question.