The legality of the threat or use of nuclear weapons refers to the complex interplay of international law, humanitarian law, and treaties that govern the conditions under which nuclear weapons can be legally threatened or utilized. This concept is deeply connected to principles such as proportionality and necessity in warfare, as well as the obligations set forth by various international agreements aimed at disarmament and non-proliferation. Ultimately, this legality is often subject to interpretation by international courts and tribunals, which play a crucial role in adjudicating disputes related to nuclear armament.