In CSS, the max-height property is used to specify the maximum height of an element. If the element's content exceeds the specified maximum-height, it will overflow; otherwise, it has no effect. If the element's content is too small, it has no effect. The max-height property can override the height property value.