Deontologism explained

Deontologism is a moral theory that is only thought about regarding duties and rights. People always have a moral obligation to follow a clear set of rules. So, in this ethical system, the goal of any action never justifies the way it was done. It wouldn’t matter if someone did something terrible because it was the right thing to do. Because of this, some people think that consequentialism is the philosophical opposite of deontology.