The medial compartment of the thigh is a group of muscles located on the inner part of the thigh, responsible for adducting (bringing towards the midline) and stabilizing the leg. These muscles are innervated primarily by the obturator nerve and play a critical role in movements such as crossing one leg over the other or stabilizing the hip during walking.