Why do Eyes Dilate?

Eyes dilate as a way of letting you see better. As an example when it’s dark, your pupils dilate to better adjust to seeing in the dark. Same concept as when you walk outside or in a lighted room. The pupils get smaller so you aren’t taking in as much light so you aren’t being blinded by the light.