The law of war is the part of international law that regulates the conditions for initiating war (jus ad bellum) and the conduct of hostilities (jus in bello). Laws of war define sovereignty and nationhood, states and territories, occupation, and other critical terms of law. Among other issues, the modern laws of war address the declarations of war; acceptance of surrender and the treatment of prisoners of war; the principles of distinction, as well as military necessity and proportionality; and the prohibition of certain weapons that cause unnecessary or excessive suffering.
The law of war is considered distinct from other bodies of law—such as the domestic law of a particular belligerent to a conflict—which may provide additional legal limits to the conduct or justification of war. The term law of war, or jus in bello, overlaps to some degree with opinio juris (also referred to as customary law), but refers to a very specific body of international law composed of customary and treaty-based law.