Inversion takes place when air temperature increases with height as opposed to decreasing at higher altitudes.