A war crime is an act that constitutes a serious violation of the law of war that gives rise to individual criminal responsibility. Examples of war crimes include intentionally killing civilians or prisoners, torture, destroying civilian property, taking hostages, perfidy, rape, using child soldiers, pillaging, declaring that no quarter will be given, and using weapons that cause superfluous injury or unnecessary suffering.
The concept of war crimes began to emerge during the end of the 19th century and the beginning of the 20th century when the body of customary international law applicable to warfare between sovereign states was codified. Such codification occurred at the national level, such as with the publication of the Lieber Code in the United States, and at the international level with the adoption of the treaties during the Hague Conventions of 1899 and 1907. Moreover, trials in national courts during this period further helped clarify the law. Following the end of World War II, major developments in the law occurred. Numerous trials of Axis war criminals established the Nuremberg principles, such as notion that war crimes constituted crimes defined by international law. Additionally, the Geneva Conventions in 1949 defined new war crimes and established that states could exercise universal jurisdiction over such crimes. In the late 20th century and early 21st century, following the creation of several international courts, additional categories of war crimes applicable to armed conflicts other than those between states, such as civil wars, were defined.
The trial of Peter von Hagenbach by an ad hoc tribunal of the Holy Roman Empire in 1474, was the first "international" war crimes trial, and also of command responsibility. He was convicted and beheaded for crimes that "he as a knight was deemed to have a duty to prevent", although he had argued that he was only "following orders".