The primary function of the pupil is to regulate the amount of light that enters the eye. When the pupil is smaller, less light enters the eye in bright environments. The pupil gets larger as light levels decrease to let more light into the eye. Doctors examine the pupil to ascertain one's neurological function.