Sunburn is caused by harmful ultraviolet (UV) rays from the sun, which damage skin cells and trigger inflammation, leading to redness, pain and swelling. These rays can penetrate clouds and reflect off surfaces like water and sand. Experts advise limiting sun exposure, using sunscreen, protective clothing, and staying hydrated.