It carries the static load of the roof, sheathing, roof beams, and ceiling materials (together called the dead load), and also the dynamic load of snow, wind, and all movable furniture of the floor above (referred to as the live load). It also prevents the walls of the house from bending or flexing.