Why does the ophthalmologist dilate the pupil?

To get a better... Look at the retina without the pupils constricting when exposed to the light, at least that how it was once explained to me.