Fog is simply a cloud that forms at ground level, made of tiny water droplets that cut visibility to less than a kilometre. The two most common kinds form in opposite ways: radiation fog settles into valleys on clear, calm nights as the ground radiates away its heat, while advection fog rolls in when warm, moist air drifts over a cold surface such as the sea. One burns off by mid-morning; the other can linger for days.
Worth knowing
There is an official line between fog and mist: by international convention it is only called 'fog' once visibility drops below 1 km. Above that threshold, the very same haze is properly called mist.
Note
Still unsure it's the same cloud? Our app, Cloud Point— on iOS and Android — reads a photo and returns the likely type with altitude, useful when a formation is fading faster than you can look it up.