The edge of the roof has thin metal flashing that helps water drip off the roof without damaging the home or causing a leak. Open valleys have metal flashing to protect this critical area of the roof. A look at roof design.