A carport is a gable or flat structure that has a roof on it. A carport can be either attached to a building or freestanding.