Justice is a concept of moral rightness based on fairness, equality, and law. It involves resolving disagreements and conflicts in a fair manner, with fairness to all involved. Justice is closely related to notions of morality, righteousness, and lawfulness. It can also involve the setting of punishment for wrongdoing, based on fairness and proportionality to the offense committed.