A ridge cap is a type of roofing material that sits at the peak of a roof, covering the joint where two sloping sides meet. Its primary purpose is to protect the roof from water infiltration and to provide a finished appearance. Ridge caps can be made from different materials, including metal, shingles, and tiles, but metal ridge caps are widely preferred due to their durability and longevity.