The ridge is the upper end of a roof. In the case of a gable roof, for example, this is the edge in which the two halves of the roof intersect, in the case of a monopitch roof the upper, usually horizontal edge of the roof surface.
Source: bauwion