Rafters are sloped beams and run vertically from the ridge down to the eaves, whereas purlins are horizontal beams that are laid across rafters. Rafters form the main shape and framework of the roof and support roofing materials, however, purlins provide support for the rafters and distributes roof load evenly.