A human law has the character of law to the extent that it accords with right reason, and thus derives from the eternal law. Insofar as it falls short of right reason it is said to be an unjust law, and thus has not so much the nature of law as of a kind of violence. 22

Catechism number 1903

Authority is exercised legitimately only when it seeks the common good of the group concerned and if it employs morally licit means to attain it. If rulers were to enact unjust laws or take measures contrary to the moral order, such arrangements would not be binding in conscience. In such a case, "authority breaks down completely and results in shameful abuse."23

Official source ↗