Where were the piratical kingdoms from