The job of the pupil in the eye is to expand or contract depending on the intensity of the light around the eye.