Why do we get a sunburn?      
A two-minute video explains how the ultraviolet rays emitted by the Sun cause sunburn. The video states that the high-energy light causes a reaction between some of the DNA's basic building blocks and thus damaging it. The video further adds that to protect the skin cells from the light, the body produces a pigment that absorbs the harmful radiation.