As human populations migrated to northern regions with less intense sunlight, natural selection favored lighter skin. Lighter skin allows the body to absorb more ultraviolet radiation, which is necessary to synthesize vitamin D in environments with low sunlight.