The skin is more than just a bag in which the skeleton and organs are contained. In its own right, it is the body's largest organ. It is the interface between the body and an often hostile environment. The skin absorbs harmful external factors such as ionizing radiation, ultraviolet light, and hundreds of toxic fumes and chemicals, preventing them from entering the body and causing damage to vital organs. It monitors both internal and external temperature changes and adapts to these changes by sweating and through blood vessel dilation or contraction.
The epidermis is the outside or top layer of the skin, and is what you see when you look at the skin. The life cycle of the epidermis is about three weeks long. The bottom layer of the epidermis, which consists of new, rapidly growing cells, pushes up to replace the top layer of dead cells causing them to be sloughed off.
The epidermis protects the skin and is very effective at blocking entry of foreign materials at the molecular level. Pigment cells are found in the epidermis and in the deeper layers of the skin around the oil glands and hair roots. The skin receives its color from pigment cells that produce melanin.

