The ultraviolet light, also called UV light, that comes from the sun and from tanning lights and beds increases the risk of skin cancer, including melanoma. Having many moles or moles that aren't typical. Having more than 50 typical moles on your body indicates an increased risk of melanoma.