Pupil size and reactivity are tested clinically to evaluate the eye and brain. The normal pupil constricts to light (direct and consensual response) and accommodation. Pupil size is controlled by the iris sphincter and dilator muscles innervated by the parasympathetic and sympathetic nervous systems. Pupillary reflexes like the light and accommodation reflexes are tested to localize lesions. Abnormal pupil size or reactivity can indicate conditions like Horner's syndrome or third nerve palsy. An afferent pupillary defect detected by the swinging flashlight test indicates optic nerve dysfunction. Pharmacologic testing can further localize lesions in the pupillary pathway.