A truss is a framework of triangles, which supports the roof's weight and resists any external forces.