The relationship between human rights and armed conflict is rooted in historical debates among religious, philosophical, and international legal scholars about the nature of a just war, and appropriate conduct in war, which also have come to underpin and international humanitarian law. An understanding of the links between human rights, war, and conflict can begin with conflict analysis, as human rights violations can be both cause and consequence of conflict. In the most general sense, grievances over the denial or perceived denial of rights can generate social conflict. This may be the case where there is systematic discrimination based upon race, ethnicity, caste, religion, language, gender, or other characteristics. Alternatively, human rights abuses can emerge as a result of violent conflict. A conflict may have been undertaken by the parties primarily out of concern to promote a political or ideological agenda, or to promote the welfare of one or more identity group(s), or over access to resources. Human rights are also potentially transformative of conflicts and may make their resolution a greater challenge. Thus, conflicts that begin as conflicts over resources, religion, or ethnic or territorial claims, may, as they progress, create new grievances through the real and perceived violation of human rights by one or more parties to the conflict.