Here are the steps for building a roof: Design: Create a plan for the roof based on the building's architecture, local codes, and desired materials. Framing: Construct the roof's frame using trusses or rafters. Decking: Install the decking material, typically made of plywood or OSB, on top of the roof's frame. Underlayment: Install a layer of waterproof underlayment to protect against moisture. Flashing: Install metal flashing around roof penetrations such as chimneys, vents, and skylights. Shingles: Install roofing shingles or tiles according to the manufacturer's instructions and building codes. Ridge cap shingles: Install ridge cap shingles at the peak of the roof to provide extra protection against weather. Ventilation: Install roof vents to provide proper attic ventilation. Final inspection: Have the roof inspected by a building inspector to ensure that it has been built to code. These are the general steps, but the specifics of the process can vary depending on the roof design, materials used, and local building codes.