Exposure to ultraviolet (UV) radiation from the sun or tanning beds can increase the risk of skin cancer, including melanoma. Using sunscreen with a high SPF, wearing protective clothing, and avoiding peak sun hours can help protect your skin from harmful UV rays.