The iris, composed of circular and radial smooth muscle fibers, acts as a diaphragm to control the size of the pupil. It regulates the amount of light entering the eye, adapting the eye to different lighting conditions. The iris's color is determined by the amount of melanin present, which is responsible for a person's eye color.