Answered

treaties to establish european spheres of influence in china often included extraterritorial rights. extraterritorial meant that:

Aall residents in treaty ports were governed by European law
Bthe city governments in treaty ports would be run by Europeans
CEuropeans living in treaty ports were subject only to European law
Dthe Chinese government surrendered all jurisdiction in the treaty port