The theory that morality is based on following rules and fulfilling one's duty, rather than consequences.