The pupil controls how much light enters the eye, allowing for clear vision. In low light, pupils widen to let in more light, and in bright light, they narrow to prevent too much light from entering.