A major nerve of the upper extremity. In humans, the fibers of the ulnar nerve originate in the lower cervical and upper thoracic spinal cord (usually C7 to T1), travel via the medial cord of the brachial plexus, and supply sensory and motor innervation to parts of the hand and forearm.