UV radiation primarily affects the epidermis, the outermost layer of the skin, and to a lesser extent, the dermis. The epidermis contains keratinocytes and melanocytes. UV radiation can cause DNA damage in these cells, leading to mutations. Melanocytes, responsible for producing melanin, may increase their activity, leading to tanning as a protective response.