The oculomotor nerve originates from two nuclei in the brainstem - the motor somatomotor nucleus and the visceral motor Edinger-Westphal nucleus. It exits the brainstem and passes through the dura mater and cavernous sinus before entering the orbit through the superior orbital fissure. Within the orbit, the oculomotor nerve divides into superior and inferior divisions, with the superior division supplying the levator palpebrae superioris and superior rectus muscles, and the inferior division supplying the medial rectus, inferior rectus, and inferior oblique muscles.