A carport is a shelter for a car consisting of a roof supported on posts built next to a house or garage. They are sometimes used as an alternative when a garage is legally required.
Example:
We wanted to use our garage for storage space, so we built a carport to protect our cars from the sun and weather.