The size of the pupils is controlled by the iris, which is the colored part of the eye surrounding the pupil. The iris contains muscles that can adjust the size of the pupil to regulate the amount of light entering the eye. In bright light, the iris contracts to constrict the pupils, and in dim light, it relaxes to dilate the pupils, adapting to changing lighting conditions.