Legalism refers to ethics based on the assumption that there are rules for human conduct and that morality consists of knowing the rules and obeying them.