Purlin is a horizontal beam or bar used for structural support in structures, most often below the roof. Purlins are supported either by the building's rafters or its walls. These are most commonly used in metal buildings, but in wood-frame structures, these also replace closely packed rafters