What is the function of the sebaceous gland?

The sebaceous gland is a holocrine gland that is a part of the pilosebaceous unit. Its function is to produce sebum, which is a combination of wax esters, squalene, cholesterol esters, and triglycerides. Sebum is secreted through the sebaceous duct into the hair follicle, where it covers the skin surface, possibly as a protectant. Sebum may also have antifungal properties. Sebaceous glands are located everywhere on the skin except the palms and soles.