The obturator n. provides motor innervation to the muscles of the medial compartment of the thigh. It passes from the pelvis through the obturator foramen with the obturator a.