The ulnar nerve originates from the C8-T1 nerve roots of the brachial plexus. It descends along the back of the humerus and enters the forearm, running deep to the flexor carpi ulnaris muscle alongside the ulna. In the forearm, it supplies branches to the flexor carpi ulnaris and flexor digitorum profundus muscles. It continues into the hand, passing through the carpal tunnel to supply branches to small muscles of the hand and provide cutaneous innervation to the skin of the palm and back of the hand.