A roof protects a building from weather effects like rain. Different roof types include flat, shed, gable, hip, and dome roofs. A green roof is a roof covered with vegetation that provides environmental benefits like stormwater management and insulation. It includes layers like a waterproof membrane, root barrier, drainage, growth medium, and plants.