Tanning occurs when the skin is exposed to UV (ultraviolet) radiation. To protect itself from radiation, the skin produces melanin pigmentation. Melanin pigment is responsible for the darkening of the skin. Such tanning occurs within 48 hours of exposure.