A roof is part of a building envelope, both the covering on the uppermost part of a building or shelter which provides protection from animals and weather, notably rain, but also heat, wind and sunlight; and the framing or structure which supports the covering.
A roof may also provide additional living space, for example a roof garden.