Fog can be considered a type of low-lying cloud, usually resembling stratus.
Fog, like its elevated cousin stratus, is a stable cloud deck which tends to form when a cool, stable air mass is trapped underneath a warm air mass.