Rooftop flashing is a thin material, typically made from metal, installed at roof joints, valleys, and around chimneys or vents. Its primary purpose is to direct water away from critical areas of the roof, ensuring that rainwater flows off the surface and does not accumulate or penetrate the building.