Melanoma, the most serious type of skin cancer, develops in the cells that produce melanin — the pigment that gives your skin its color. Melanoma can also form in your eyes and, rarely, in internal organs, such as your intestines. The exact cause of all melanomas isn’t clear, but exposure to ultraviolet (UV) radiation from sunlight or tanning lamps and beds increases your risk of developing melanoma. Other factors, such as your genetic makeup, likely also play a role.