In architecture or structural engineering or building, a purlin (or purline) is a horizontal structural member in a roof. Purlins support the loads from the roof deck or sheathing and are supported by the principal rafters and/or the building walls, steel beams etc. The use of purlins, as opposed to closely spaced rafters, is common in pre-engineered metal building systems and some timber frame construction.