A preemptive war is a war that is commenced in an attempt to repel or defeat a perceived imminent offensive or invasion, or to gain a strategic advantage in an impending (allegedly unavoidable) war shortly before that attack materializes. It is a war that preemptively 'breaks the peace'. The term 'preemptive war' is sometimes confused with the term 'preventive war'. The difference is that a preventive war is launched to destroy the potential threat of the targeted party, when an attack by that party is not imminent or known to be planned. A preemptive war is launched in anticipation of immediate aggression by another party. Most contemporary scholarship equates preventive war with aggression, and therefore argues that it is illegitimate. The waging of a preemptive war has less stigma attached than does the waging of a preventive war. The initiation of armed conflict: that is being the first to 'break the peace' when no 'armed attack' has yet occurred, is not permitted by the UN Charter, unless authorized by the UN Security Council as an enforcement action. Some authors have claimed that when a presumed adversary first appears to be beginning confirmable preparations for a possible future attack, but has not yet actually attacked, that the attack has in fact 'already begun', however this opinion has not been upheld by the UN.
As early as 1625, Hugo Grotius characterized a state's right of self-defense to include the right to forestall an attack forcibly. In 1685, the Scottish government conducted a preemptive strike against the Clan Campbell, called the Argyll Whigs. In 1837, a certain legal precedent regarding preemptive wars was established in the Caroline affair when British forces in Canada crossed the United States border and killed several Canadian rebels and one American citizen who were preparing an offensive against the British in Canada. The United States rejected the legal ground of the Caroline case. In 1842, US Secretary of State Daniel Webster said that the necessity for forcible reaction must be "instant, overwhelming, leaving no choice of means, and no moment for deliberation." That formulation is part of the Caroline test, which "is broadly cited as enshrining the appropriate customary law standard."