A just law is a man-made code that squares with the moral law or the law of God. An unjust law is a code that is out of harmony with the moral law. To put it in the terms of Saint Thomas Aquinas, an unjust law is a human law that is not rooted in eternal and natural law.