A flue is a duct or pipe that vent gases, smoke, or exhaust from a heating appliance, such as a furnace or stove, to the outside atmosphere. Its primary function is to ensure efficient airflow and prevent hazardous fumes from entering living spaces.