There are three major nerves in the thigh, each associated with one of the three compartments. The femoral nerve is associated with the anterior compartment of the thigh, the obturator nerve is associated with the medial compartment of the thigh, and the sciatic nerve is associated with the posterior compartment of the thigh.