Sunscreens work by preventing the sun's ultraviolet (UV) radiation from reaching the skin. There are two types of UV radiation to worry about—UVA and UVB. Both types damage the skin and can increase your risk of skin cancer; the Environmental Protection Agency (EPA) estimates that the sun causes 90 percent of non-melanoma skin cancers and 65 percent of melanoma.