When we imagine a pirate, we picture chaos: rum-soaked violence, mutiny, and anarchy. But beneath the Jolly Roger lay one of history’s most ironic contradictions. Pirates, the enemies of order, were actually strict followers of the law—their own law.