It is a motor nerve for the sternocleidomastoid and the trapezius.
Apparent origin and general course
It is formed by the union of two nerve roots: the cranial root or bulbar root (which in reality consists of the motor fibres for the larynx, via the vagus nerve) and the spinal root, which carries the motor fibres for the sternocleidomastoid and trapezius.
The apparent origin of the bulbar root is a series of rootlets in the retro-olivary (posterolateral) sulcus of the medulla, and the spinal root is formed by the confluence of many roots that emerge from the posterolateral sulcus of the spinal cord between the 1st and 4th cervical roots.
The cranial and spinal roots join to form a trunk that ascends until it passes through the foramen magnum and leaves the cranial cavity through the jugular foramen into the retrostyloid space. As soon as it emerges, it gives off an anastomosis with the plexiform ganglion of the vagus that carries the fibres of the cranial root and provides the vagus with the fibres for the motor innervation of the larynx.
The nerve crosses the retrostyloid space downwards and laterally and reaches the deep surface of the sternocleidomastoid muscle, which it supplies.
It continues along the deep surface of the sternocleidomastoid and crosses the lateral region of the neck obliquely to pass under the anterior border of the trapezius, supplying the upper part of this muscle.
Injury to the accessory nerve is relatively common in neck dissections of the lymph node chains and results in a motor deficit that mainly affects rotation of the head and elevation of the shoulder (over time the trapezius atrophies and a “drooping shoulder” is seen).