In meteorology, an inversion (or temperature inversion) is a phenomenon in which a layer of warmer air overlies cooler air. Normally, air temperature gradually decreases as altitude increases, but this relationship is reversed in an inversion.
An inversion traps air pollution, such as smog, near the ground. An inversion can also suppress convection by acting as a "cap". If this cap is broken for any of several reasons, convection of any humidity can then erupt into violent thunderstorms. Temperature inversion can cause freezing rain in cold climates.