The sun emits rays called ultraviolet rays (UV rays). There are two type of UV rays, UVA and UVB. When the skin is exposed to these rays, it can cause damage to the skin cells at the DNA level. Continually exposing your skin to these UV rays increases the risk of damaged cells turning into cancer cells. UV rays are directly linked to developing melanoma, basal cell carcinoma of the skin and squamous cell carcinoma of the skin.