In some cases, the British government actually commissioned seamen to commit acts of piracy, but with one catch: They were charged to prey only upon Spaniards, British rivals on the high seas and in the New World, and turn over a large portion of the stolen loot to the government.
NPR: Pirates 101: Fact and Fiction on the High Seas