​The first layer of a roof that is installed, the underlayment is the layer that your roofing materials are attached to that also serves as a barrier against moisture.