There are primarily two types of UV rays that affect the skin: UVA and UVB. UVA rays penetrate deeper into the skin, causing aging and long-term damage. UVB rays are responsible for sunburn and direct DNA damage, which can lead to skin cancer. Broad-spectrum sunscreens protect against both types of rays.