The iris separates the anterior and posterior chambers of the eyeball. The iris, by contraction and dilatation, regulates the entrance of light into the eye. The iris controls the size of the pupil. For spherical refracting lenses, like the one in your eye rays that are further from the optical center are bent more than those closer to the center. The result is that when the image is formed on the retina, it may be slightly out of focus. The iris reduces the number of these rays by forming a barrier over the parts of the lens in the eye which might cause this and thus producing a more sharply focused image on the retina.
The pupil controls the illumination in the eye and improves the optical quality of the image on the retina. It regulates the amount of light that enters the eye. The pupil is the hole that lets light enter the inner eye.
The pupil is the hole located in the center of the iris.
Regards