An awning is like an extension of a building, attached to provide shade right by windows or doors. A pergola, however, can be a stand-alone structure in an outdoor area or attached to a building. It’s supported by posts and features an open lattice roof for a blend of sun and shade.