Sunburn comes from too much UV radiation. This can be from the sun or things like tanning beds. If your skin can’t protect itself enough, it turns red and hurts.