Backyard pergolas are open-air structures that can either be free-standing or attached to the side of a home. Most outdoor pergolas feature a flat or peaked roof. Gazebos, on the other hand, are enclosed structures with open sides and a cone-shaped roof.