The spinal accessory nerve is a unique cranial nerve that has both a cranial and spinal component. It originates from motor neurons in the upper cervical spinal cord and nucleus ambiguus. The cranial component joins with the vagus nerve after exiting the skull through the jugular foramen. The spinal component separates and innervates the sternocleidomastoid and trapezius muscles, supplying motor function to the neck and shoulder regions. Injury to the spinal accessory nerve can result in weakness of the sternocleidomastoid or trapezius muscles on the same side, causing issues with head and shoulder movement.