Underlayment is a layer of material installed between the roof deck and the roofing material (shingles, tiles, etc.) to provide an additional layer of protection against moisture and weather. A secondary water barrier is a specific type of underlayment designed to provide extra protection against water intrusion, particularly in areas prone to severe weather, ensuring that even if the primary roofing material is compromised, the barrier helps prevent water from reaching the roof deck.