The muscle fibers of the flexor hallucis longus converge inferiorly to form a large cord-like tendon, which passes behind the distal head of the tibia and then slips into a distinct groove on the posterior surface of the adjacent tarsal bone (talus) of the foot. The tendon curves anteriorly first under the talus and then under a shelf of bone (the sustentaculum tali), which projects medially from the calcaneus, and then continues anteriorly through the sole of the foot to insert on the inferior surface of the base of the distal phalanx of the great toe.