Just war theory divides the ethics of war into the right to start a war and the right way to fight it
Just war theory is a military and philosophical doctrine that evaluates if a war is morally right. It judges a conflict with two separate sets of rules: the right to go to war, and right conduct during the war.
When countries think about war, they face different moral views. Pacifism says that war is always wrong and states must never fight. Realism says that moral rules do not apply to war at all, and states must do whatever is necessary to survive. Just war theory takes a middle path: war is terrible, but it is sometimes less bad than the evil it prevents.
Christian thinkers such as Augustine of Hippo and Thomas Aquinas developed this tradition in Europe, and similar rules appeared in ancient India and Rome. Today, these ideas form the basis for the international law of war.
To judge a conflict fairly, the theory separates the decision to start a war from the actions of the soldiers who fight it. It uses two Latin terms for this division:
1. Jus ad bellum ("right to war") is the set of rules that Political leaders must follow when they decide to start a war.
2. Jus in bello ("right in war") is the set of rules that commanders and soldiers must follow while they fight.
Because these two sets of rules are separate, a war can be just in one way and unjust in the other. A country that defends itself against an invasion has a moral right to go to war. However, if its army murders prisoners or attacks towns with no military value, it fights that war unjustly. Conversely, soldiers who fight for an unjust invader can still follow the rules of war on the battlefield.
Fact-checked against Just war theory on Wikipedia
Part of the War syllabus: The Ethics and Law of War
See it on the timeline of The Ethics and Law of War