Sunburn is a skin condition that occurs when the skin is overexposed to the sun's ultraviolet (UV) rays, causing redness, pain, and in severe cases, blistering.