The valley flashing is the flashing that is used when you have a change in direction of the roof sheets normally when you have a 90 degree 'hip' or 'dog-leg' in the roof and goes under the sheets.