It was not surprisingly a very grey area. To take two of the better known pirates as example Captain Kidd started his voyage as a privateer charged with hunting pirates. Captured a French ship that had an English captain and had been leased to an Indian noble, on his return to England, peace...