Anti-aircraft warfare (AAW) or air defence (or air defense in American English) is the counter to aerial warfare and includes "all measures designed to nullify or reduce the effectiveness of hostile air action". It encompasses surface-based, subsurface (submarine-launched), and air-based weapon systems, in addition to associated sensor systems, command and control arrangements, and passive measures (e.g. barrage balloons). It may be used to protect naval, ground, and air forces in any location. However, for most countries, the main effort has tended to be homeland defence. Missile defence is an extension of air defence, as are initiatives to adapt air defence to the task of intercepting any projectile in flight.
Most modern anti-aircraft (AA) weapons systems are optimised for short-, medium-, or long-range air defence, although some systems may incorporate multiple weapons (such as both autocannons and surface-to-air missiles). 'Layered air defence' usually refers to multiple 'tiers' of air defence systems which, when combined, an airborne threat must penetrate to reach its target; this defence is usually accomplished via the combined use of systems optimised for either short-, medium-, or long-range air defence.