Roof flashing is used to seal joints and transitions on a roof, such as around chimneys, skylights, and valleys. The purpose of flashing is to provide a barrier from water and direct water away from vulnerable areas and into the drainage system.