The accessory nerve is a cranial nerve that controls the sternocleidomastoid and trapezius muscles. As part of it was formerly believed to originate in the brain, it is considered the eleventh of twelve cranial nerves, or simply cranial nerve XI.
The spinal accessory nerve provides motor innervation from the central nervous system to two muscles of the neck: the sternocleidomastoid muscle and the trapezius muscle.