Most skin cancers are caused by too much exposure to ultraviolet (UV) rays.