Excessive exposure to ultraviolet (UV) radiation from the sun or tanning beds increases the risk of skin cancer, including melanoma. To protect your skin, use a broad-spectrum sunscreen with an SPF of at least 30, wear protective clothing, and avoid the sun during peak hours.