刑 is composed of a variant of 井 (well) and the radical 刀 (knife). 井 is a pictograph of a railing around a well, symbolizing order and law, while 刀 represents a weapon used to enforce the law. Thus, 刑 refers to methods of punishing criminals under the law.