The medial compartment of the thigh contains six muscles (gracilis, pectineus, adductor longus, adductor brevis, adductor magnus, and obturator externus). All except the pectineus, which is innervated by the femoral nerve, and part of the adductor magnus, which is innervated by the sciatic nerve, are innervated by the obturator nerve.