Temperature inversions occur when the normal heat gradient of the atmosphere—air is warmer near the ground and cooler in the sky—is reversed. A temperature inversion typically occurs in the late evening and disappears just after sunrise. A visual cue that a temperature inversion has happened is fog (or smog in an urban environment).