What is the function of the iris diaphragm?

What is the function of the iris diaphragm?