Sunburn is caused by too much exposure to ultraviolet (UV) light. UV light may be from sunlight or artificial sources, such as sunlamps and tanning beds. Melanin is the dark pigment in the skin's outer layer that gives skin its normal color
Hope I helped