A sunburn is a kind of burn that happens when skin is exposed to sunlight for too long. The ultraviolet part of sunlight breaks down natural chemicals in the skin. This makes the skin become red. A sunburn can be painful. Sunburns stay for days or weeks.