A rafter is a structural member of the roof, which supports the roof's weight and transmits it to the walls.