The tibial nerve leaves the posterior compartment of the leg at the ankle by passing through the tarsal tunnel behind the medial malleolus. It enters the foot to supply most intrinsic muscles and skin.
In the leg, the tibial nerve gives rise to: branches that supply all the muscles in the posterior compartment of the leg, and two cutaneous branches, the sural nerve and medial calcaneal nerve.