The vertical or diagonal rails installed on metal roofs serve as snow retention devices to hold snow in place. Snow rails prevent dangerous avalanche-like slides for roofs with steep pitches or high snow loads. They also protect roof seams and gutters from damage related to excessive snow accumulation.