This is an extension of nation diplomacy. The king of the nation may give a royal seal, ships and gold to pirates that fly the black colors.
The pirate in question will receive less damage when attacked by an enemy nation and will be prevented from attacking any ship flying the colors of the sanctioning nation without giving back the seal.