The sixteenth and seventeenth centuries saw the emergence of a new threat to government and organized society. Privateers and pirates raided along the coast of powerful countries and were, at times, at war with England, France, and Spain. They developed their own system of rules, a code of morality, and a very rough form of government. Pirates were eventually able to organize behind a captain who eventually would become like a governor with judicial power over all the pirates and control over settlements taken by the pirates in raids.