Ching Shih's pirate codes included the following: • Anyone who disobeys or attempts to usurp their ruler will be beheaded • Thieving from the common treasury and/or villagers who aid the pirates is a capital offense • 20% of any stolen booty belongs to the responsible pirate while 80% goes towards the treasury