Flashing is a protective layer of sheet metal or other material that covers an opening in a wall or roof to keep water from entering and damaging the building materials underneath.