Flashing is a thin piece of metal used to seal various places in the roof to provide extra protection to places where penetration by water could occur.