Long ciliary nerves

The long ciliary nerves, two or three in number, are given off from the nasociliary nerve as it crosses the optic nerve. The nasociliary nerve that the long ciliary nerves branch from is itself a branch of the ophthalmic branch (V1) of the trigeminal nerve (CN V).
They accompany the short ciliary nerves from the ciliary ganglion, pierce the posterior part of the sclera, and running forward between it and the choroid, are distributed to the iris and cornea.
The long ciliary nerves provide sensory innervation to the eyeball, including the cornea. In addition, they contain sympathetic fibers from the superior cervical ganglion to the dilator pupillae muscle. The sympathetic fibers to the dilator pupillae muscle mainly travel in the nasociliary nerve but there are also sympathetic fibers in the short ciliary nerves that pass through the ciliary ganglion without forming synapses.