The sole of the foot receives most of its innervation from the terminal branches of the tibial nerve, the medial and lateral plantar nerves. These nerves serve areas of the foot according to their names. The lateral plantar nerve is similar to the ulnar nerve of the upper limb, while the medial plantar nerve is analogous to the upper limb's median nerve.