Long-term exposure to ultraviolet radiation from the sun or tanning beds can increase the risk of skin cancer.