Most muscles in the medial compartment are innervated mainly by the obturator nerve (except the pectineus, which is innervated by the femoral nerve, and part of the adductor magnus, which is innervated by the tibial division of the sciatic nerve).