A sunburn is skin damage from the sun’s ultraviolet (UV) rays. Most sunburns cause mild pain and redness but affect only the outer layer of skin (first-degree burns). The red skin might hurt when you touch it. These sunburns are mild and can usually be treated at home.