All of the intrinsic muscles of the hand are innervated by the deep branch of the ulnar nerve except for the three thenar and two lateral lumbrical muscles, which are innervated by the median nerve. The intrinsic muscles are predominantly innervated by spinal cord segment T1 with a contribution from C8.