A fog machine is a device that produces a dense vapor resembling fog or smoke, commonly used in entertainment settings such as concerts, theaters, parties, and haunted houses to create atmospheric effects.