A truss consists of frames connected at joints. Trusses are typically composed of triangles because of the structural stability of that shape and design.
A triangle is the simplest geometric figure that will not change shape when the lengths of the sides are fixed. In comparison, both the angles and the lengths of a four-sided figure must be fixed for it to retain its shape.