The sartorius muscle assists in flexing the thigh at the hip joint and the leg at the knee joint. It also abducts the thigh and rotates it laterally, as when resting the foot on the opposite knee when sitting.
The sartorius is innervated by the femoral nerve.