The epidermis is the outermost of the three layers that comprise the skin, the inner layers being the dermis and hypodermis. The epidermal layer provides a barrier to infection from environmental pathogens and regulates the amount of water released from the body into the atmosphere through transepidermal water loss.