As it cools, the surface air becomes denser than the warmer air above it, and thus becomes trapped below it. The layer may thicken through turbulence generated within the developing marine layer itself.
The process of a dense layer of air being trapped below a warmer layer as it cools is described.