Most muscles in the posterior compartment of the thigh and the leg and in the sole of the foot are innervated by the tibial part of the sciatic nerve (except the short head of the biceps femoris in the posterior thigh, which is innervated by the common fibular division of the sciatic nerve).
The anterior and lateral compartments of the leg and muscles associated with the dorsal surface of the foot are innervated by the common fibular part of the sciatic nerve.