The dermis is the inner layer of skin, containing blood and lymph vessels, hair follicles, and glands. The glands produce sweat, which helps regulate body temperature and sebum. Sebum is an oily substance that helps keep the skin from drying out. Sweat and sebum reach the skin's surface through tiny openings called pores.