The skin's glands produce sweat, which helps regulate body temperature. They also produce sebum, an oily substance that helps keep the skin from drying out. Sweat and sebum get to the surface of the skin through tiny openings called pores.