The Start Of Fireplace
Ancient fire pits were sometimes built in the ground, within caves, or in the center of a hut or dwelling. Evidence of prehistoric, man-made fires exists on all five inhabited continents. The disadvantage of early indoor fire pits was that they produced toxic and/or irritating smoke inside the dwelling.
Fire pits developed into raised hearths in buildings, but venting smoke depended on open windows or holes in roofs. The medieval great hall typically had a centrally located hearth, where an open fire burned with the smoke rising to the vent in the roof. Louvers were developed during the Middle Ages to allow the roof vents to be covered so rain and snow would not enter.
Also during the Middle Ages, smoke canopies were invented to prevent smoke from spreading through a room and vent it out through a wall or roof. These could be placed against stone walls, instead of taking up the middle of the room, and this allowed smaller rooms to be heated.
Chimneys were invented in northern Europe in the 11th or 12th centuries and largely fixed the problem of smoke, more reliably venting it outside. They made it possible to give the fireplace a draft, and also made it possible to put fireplaces in multiple rooms in buildings conveniently. They did not come into general use immediately, however, as they were expensive to build and maintain.