Exposure to ultraviolet (UV) radiation from the sun or tanning beds is a well-known risk factor for skin cancer. Protecting skin by using sunscreen, wearing protective clothing, and avoiding peak sun hours can significantly reduce the risk of developing skin cancers such as melanoma.