Skin contains several types of glands, primarily sebaceous glands and sweat glands. Sebaceous glands secrete sebum, an oily substance that lubricates and waterproofs the skin. Sweat glands are of two types: eccrine glands, which are involved in thermoregulation and are distributed across most of the body, and apocrine glands, which are found in specific areas like the armpits and are responsible for body odor.