I can
think of at least two cases: 1) radiation fog is caused by the surface radiating away energy and cooling enough to bring the temperature of air lying above it down to the
dew point or below; 2) advection fog is caused by warmer (moist) air passing over a cooler surface.