A roofing underlayment is a layer of material installed under the roofing shingles to provide an extra layer of protection against moisture and leaks.