The sweat glands are located in the deep portion of the dermis and in the hypodermis, opening onto the surface of the skin by way of the duct, which passes through the dermis and epidermis. Reaching the epidermis, the duct loses its own wall, forming a zigzag channel, especially in the stratum corneum.