A sunburn is an inflammatory reaction caused by prolonged exposure to UV radiation from the sun. This inflammation causes redness and swelling and eventually cell damage. As the cells in the outer layer of skin die, the skin will start to dry and peel.