There appears to have been a hierarchy in most pirate organizations. Pirate leaders could become very wealthy and powerful, especially when working with the Chinese dynasty, and, consequently, so could those who served under them. These pirate groups were organized similarly to other “escape societies” throughout history, and maintained a redistributive system to reward looting; the pirates directly responsible for looting or pillaging got their cut first, and the rest was allocated to the rest of the pirate community. There seems to be evidence that there was an egalitarian aspect to these communities, with capability to do the job being rewarded explicitly. The pirates themselves had some special privileges under the law when they interacted with communities on land, mostly in the form of extra allotments of redistributed wealth.