A pergola is an outdoor structure consisting of four main columns supporting a roofing grid. The roof and walls can be left open or covered, depending on the particular style and need. While many pergolas are freestanding, they are also sometimes wall-mounted for attachment to a house or other building.